在IBM Content Navigator中查询时出错

时间:2015-09-21 13:10:39

标签: filenet-p8 filenet-process-engine ibm-content-navigator

我们正在将IBM Content Navigator 2.0.3与IBM FileNet P8 5.2版一起使用。我们想根据Process Engine REST Service Reference进行查询。我预约了给定篮子中的列(根据here),我提出了这个问题:

[ECM SERVER]/CaseManager/P8BPMREST/p8/bpm/v1/queues/SPLN_Autuacao/workbaskets/Autuacao/columns?cp=CP1

我的结果是这(仅显示2列):

{
    ...,
    "SPLN_itemkey":{
        "ordinal":2,
        "prompt":"itemkey",
        "attributes":"queues\/SPLN_Autuacao\/workbaskets\/Autuacao\/columns\/SPLN_itemkey\/attributes",
        "sortable":false,
        "type":2,
        "name":"SPLN_itemkey"
    },
    "SPLN_actid":{
        "ordinal":3,
        "prompt":"actid",
        "attributes":"queues\/SPLN_Autuacao\/workbaskets\/Autuacao\/columns\/SPLN_actid\/attributes",
        "sortable":false,
        "type":1,
        "name":"SPLN_actid"
    },
    ...
}

如果我查询没有像

这样的参数
[ECM SERVER]/CaseManager/P8BPMREST/p8/bpm/v1/queues/SPLN_Autuacao/workbaskets/Autuacao/queueelements?cp=CP1

我得到的一些结果是:

{
    "lastRecord":null,
    "queueElements":[
        {
            "lockedBy":"",
            "stepProcessorId":165458,
            "milestones":"queues\/SPLN_Autuacao\/stepelements\/942CF4FC538FDC46A9E3ADBE3CF607C1\/milestones",
            "caseTaskId":"{C087B74F-0100-C29D-9C14-EB557CC6F2D6}",
            "stepElement":"queues\/SPLN_Autuacao\/stepelements\/942CF4FC538FDC46A9E3ADBE3CF607C1",
            "canReassign":true,
            "boundUserName":"",
            "ETag":"14313.0",
            "stepDeadlineStatus":0,
            "stepName":"020 Autuacao",
            "workObjectNumber":"942CF4FC538FDC46A9E3ADBE3CF607C1",
            "caseFolderId":"{C087B74F-0000-C51C-8788-3E63307F980B}",
            "queueName":"SPLN_Autuacao",
            "lockedById":0,
            "columns":{
                "F_StepName":"020 Autuacao",
                "SPLN_resultout":"COMPLETE: ",
                "F_CreateTime":"2015-09-10T13:52:53Z",
                "F_Subject":"Fluxo Autuacao",
                "SPLN_funcmode":"PR_ELABORACAO:FN_ST_ELABORACAO",
                "SPLN_IDDocumento":"1098857",
                "SPLN_itemkey":"620006",
                "SPLN_itemtype":"SPL",
                "SPLN_actid":null,
                "SPLN_Natureza":"Mo\u00e7\u00e3o"
            }
        },
        {
            "lockedBy":"",
            "stepProcessorId":165458,
            "milestones":"queues\/SPLN_Autuacao\/stepelements\/9E1DCCF25AEE4A4FA4C61421214B9F40\/milestones",
            "caseTaskId":"{008DB74F-0100-C600-9410-D38352275E36}",
            "stepElement":"queues\/SPLN_Autuacao\/stepelements\/9E1DCCF25AEE4A4FA4C61421214B9F40",
            "canReassign":true,
            "boundUserName":"",
            "ETag":"14315.0",
            "stepDeadlineStatus":0,
            "stepName":"020 Autuacao",
            "workObjectNumber":"9E1DCCF25AEE4A4FA4C61421214B9F40",
            "caseFolderId":"{008DB74F-0000-C516-B965-5D1351219C0E}",
            "queueName":"SPLN_Autuacao",
            "lockedById":0,
            "columns":{
                "F_StepName":"020 Autuacao",
                "SPLN_resultout":"COMPLETE: ",
                "F_CreateTime":"2015-09-10T13:58:38Z",
                "F_Subject":"Fluxo Autuacao",
                "SPLN_funcmode":"PR_ELABORACAO:FN_ST_ELABORACAO",
                "SPLN_IDDocumento":"1098858",
                "SPLN_itemkey":"620007",
                "SPLN_itemtype":"SPL",
                "SPLN_actid":null,
                "SPLN_Natureza":"Projeto de lei"
            }
        },
        ...
    ],
    ...
}

但是,如果我尝试查询元素 - 假设当SPLN_itemkey等于620007时 - 我尝试使用如here所述的URL。

[ECM SERVER]/CaseManager/P8BPMREST/p8/bpm/v1/queues/SPLN_Autuacao/workbaskets/Autuacao/queueelements?cp=CP1&filters=[SPLN_itemkey=620006]

我收到此错误消息:

{
    "msg":"filenet.pe.rest.VWRESTException",
    "UnderlyingDetails":{
        "Causes":[
            "Invalid filters parameter.\n[FNRPE0450100011E] Invalid filter name",
            "Invalid filters parameter.\n[FNRPE0450100011E] Invalid filter name",
            "[FNRPE0450100011E] Invalid filter name"
        ]
    },
    "stack": "filenet.pe.rest.handlers.QueueElements$FiltersParam.parseFilters(QueueElements.java:458)\r\n\tfilenet.pe.rest.handlers.QueueElements.onGet(QueueElements.java:357)\r\n\tfilenet.pe.rest.P8BPMRESTServlet.doMethod(P8BPMRESTServlet.java:714)\r\n\t",
    "UserMessage":{
        "UniqueId":"FNRPE0450100011E",
        "Severity":"ERROR",
        "Text":"[FNRPE0450100011E] Invalid filter name"
    }
}

根据消息,我使用的过滤器名称无效。所以我尝试将filters=[itemkey=620006]改为filters=[SPLN_itemkey=620006]。但是我得到了相同的错误消息。

1 个答案:

答案 0 :(得分:1)

实际上,问题不在网址中。首先必须在ECM服务器中创建一个查询到这个URL工作。