Workflow, two process definitions

Tagged: ,

This topic has 1 reply, 1 voice, and was last updated 5 years ago by Morten Lømo.

  • Author
    Posts
  • #13579
     Morten Lømo
    Participant

    Hi
    I´ve made a workflow with Eclipse and copied the .bar file to the workflow directory. When I start OpenIDM two process definitions are created as shown below:

    curl –header “X-OpenIDM-Username: openidm-admin” –header “X-OpenIDM-Password: openidm-admin” –request GET “http://localhost:8080/openidm/workflow/processdefinition?_queryId=query-all-ids” | jq .
    ..
    {
    “_id”: “accessRequest8:13:12806”,
    “_rev”: “1”,
    “tenantId”: “”,
    “candidateStarterGroupIdExpressions”: [],
    “candidateStarterUserIdExpressions”: [],
    “participantProcess”: null,
    “processDiagramResourceName”: “AccessRequest8.accessRequest8.png”,
    “historyLevel”: null,
    “hasStartFormKey”: true,
    “laneSets”: [],
    “version”: 13,
    “description”: null,
    “name”: “AccessRequest8 process”,
    “executionListeners”: {},
    “key”: “accessRequest8”,
    “resourceName”: “AccessRequest8.bpmn20.xml”,
    “ioSpecification”: null,
    “taskDefinitions”: null,
    “suspensionState”: 1,
    “deploymentId”: “12801”,
    “properties”: {},
    “startFormHandler”: null,
    “suspended”: false,
    “variables”: null,
    “revisionNext”: 2,
    “category”: “Examples”,
    “eventSupport”: {},
    “graphicalNotationDefined”: false
    },
    {
    “_id”: “accessRequest8:14:12811”,
    “_rev”: “1”,
    “tenantId”: “”,
    “candidateStarterGroupIdExpressions”: [],
    “candidateStarterUserIdExpressions”: [],
    “participantProcess”: null,
    “processDiagramResourceName”: “OSGI-INF/activiti/AccessRequest8.accessRequest8.png”,
    “historyLevel”: null,
    “hasStartFormKey”: true,
    “laneSets”: [],
    “version”: 14,
    “description”: null,
    “name”: “AccessRequest8 process”,
    “executionListeners”: {},
    “key”: “accessRequest8”,
    “resourceName”: “OSGI-INF/activiti/AccessRequest8.bpmn20.xml”,
    “ioSpecification”: null,
    “taskDefinitions”: null,
    “suspensionState”: 1,
    “deploymentId”: “12808”,
    “properties”: {},
    “startFormHandler”: null,
    “suspended”: false,
    “variables”: null,
    “revisionNext”: 2,
    “category”: “Examples”,
    “eventSupport”: {},
    “graphicalNotationDefined”: false
    },`

    The last one gives me “Not found error”. The first one seems to be OK, but it is not selected, because OpenIDM always picks the last one. Why do I get two process definitions? How can I get rid of the last one?

    Thanks for any help
    Morten

    #13581
     Morten Lømo
    Participant

    When I try to delete the latter process definition, I get error message “Not found”:

    curl –header “X-OpenIDM-Username: openidm-admin” –header “X-OpenIDM-Password: openidm-admin” –request GET “http://localhost:8080/openidm/workflow/processdefinition/accessRequest8:14:12811” | jq .
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 116 0 116 0 0 280 0 –:–:– –:–:– –:–:– 279
    {
    “code”: 404,
    “reason”: “Not Found”,
    “message”: “no resource found with name ‘nUCStartForm.xhtml’ in deployment ‘12808’”
    }

    This also puzzles me.
    I´m running: OpenIDM version “4.1.0-SNAPSHOT” (revision: 6b12400)

    Morten

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

©2021 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?