如何为特定用户IBM BPM提取所有任务ID

时间:2019-05-09 12:32:25

标签: bpm ibm-bpm

我正在尝试在IBM BPM REST API测试器中(使用用户名)提取特定用户的任务ID。

我尝试使用以下命令,但未返回任务ID

import QtQuick 2.12
import QtQuick.Controls 2.5

ApplicationWindow
{
    id: mainWindow;

    visible: true
    width: 640
    height: 480

    SwipeView
    {
        property bool ll: false;

        id: swipeView
        anchors.fill: parent

        onCurrentIndexChanged:
        {
            if (ll)
                loaded();
        }

        function loaded()
        {
            // access any property from the sourceComponent like this:
            mainWindow.title = contentData[currentIndex].item.someProperty +
                    contentData[currentIndex].item.text;
        }

        Repeater
        {
            id: itemRepeater;
            model: 6

            Loader
            {
                active: SwipeView.isCurrentItem || SwipeView.isNextItem ||
                        SwipeView.isPreviousItem

                sourceComponent: Text
                {
                    property string someProperty: "the property";
                    text: index;

                    Component.onCompleted: console.log("created:", index);
                    Component.onDestruction: console.log("destroyed:", index);
                }

                onLoaded:
                {
                    swipeView.ll = true;
                    swipeView.loaded();
                }
            }
        }
    }
}

1 个答案:

答案 0 :(得分:0)

您的条件格式错误。在IBM BPM 8.6上,转到 REST API测试器/ Business Process Manager REST API /搜索API /运行查询(不建议使用),并将条件指定为assignedToUser|Equals|user123(替换{ {1}}(具有真实用户名); 请注意,条件中允许的列列表在user123下可用。添加到/rest/bpm/wle/v1/search/meta/constraintColumn Columns 值将缩小返回的数据集,因此这是可选的。

结果网址如下所示: taskId

结果集将具有以下结构:

rest/bpm/wle/v1/search/query?condition=assignedToUser%7CEquals%7Cuser123&organization=byInstance&run=true&shared=false&filterByCurrentUser=false