Question on using webAPI to start a process

How can I get a webAPI to start a process without a Process Start Form and return the taskID of a chained User Input Task? The TaskID that I'm getting from fv!processInfo (a!startProcess) is an invalid one when I try to embed it in my page.

I'm using webAPI because I'm passing an external parameter to the process model, retrieving if from http!request.formData (I get the param) and then starting the process. There's no problem to get the processModelUuid and append a <appian-action/>, but then I can't pass parameters.

Is this approach good?

Thanks in advance.

OriginalPostID-225959

OriginalPostID-225959

  Discussion posts and replies are publicly visible

Parents
  • @santiagov I am not sure in what way you are trying to obtain the task id, but afaik taskId is not an attribute that is available in ProcessInfo.

    And with regards to extraction of taskId from a process started by WebAPI, I think, the forum entry at /search?q=OriginalPostID-223066 might help you.

    And in order to access the values inside the ProcessInfo (which can be pp, pm or Process Variables inside pv), I think, the forum entry at https://forum.appian.com/suite/tempo/entry/e-215617 might assist you.
Reply
  • @santiagov I am not sure in what way you are trying to obtain the task id, but afaik taskId is not an attribute that is available in ProcessInfo.

    And with regards to extraction of taskId from a process started by WebAPI, I think, the forum entry at /search?q=OriginalPostID-223066 might help you.

    And in order to access the values inside the ProcessInfo (which can be pp, pm or Process Variables inside pv), I think, the forum entry at https://forum.appian.com/suite/tempo/entry/e-215617 might assist you.
Children
No Data