Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-1248

Command to launch workflow from script is not correct in the documentation

    XMLWordPrintable

    Details

      Description

      In sections:
      http://openidm.forgerock.org/doc/integrators-guide/index/chap-workflow.html#invoking-activiti-workflows
      http://openidm.forgerock.org/doc/integrators-guide/index/chap-workflow.html#example-activiti-email-notification-flow
      Command to launch workflow from script is not correct
      Doc mentions:

      openidm.action('workflow/processinstance', {"_action" : "createProcessInstance"}, {"keyrequired" : params});
      

      whereas it should be:

      openidm.action('workflow/processinstance', {"_action" : "createProcessInstance"}, params);
      

      This is using a defined params variable like this:

      params = var params = {"_key" : "EmailNotification",...})
      

      Explanation: the 3rd argument of openidm.action is going to be sent as body of the request and expect _key at the top level of the sent object.

        Attachments

          Activity

            People

            laurent.bristiel Laurent Bristiel [X] (Inactive)
            laurent.bristiel Laurent Bristiel [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: