BPM, Workflow, and Case

BPM, Workflow, and Case

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
Expand all | Collapse all

Use tw.system.startProcessByName(name, inputValues) to start a process instance from a toolkit

  • 1.  Use tw.system.startProcessByName(name, inputValues) to start a process instance from a toolkit

    Posted Mon April 05, 2021 12:51 PM
    I have a requirement to start a process instance from a toolkit using a web service, I get all the data right but when I start the Process using  tw.system.startProcessByName(name, inputValues)  I get the following error  "Unkown BPD with name="processName"

    How can I use tw.system.startProcessByName from a toolkit?

    ------------------------------
    Ivan Martinez Villegas
    ------------------------------


  • 2.  RE: Use tw.system.startProcessByName(name, inputValues) to start a process instance from a toolkit

    Posted Mon April 05, 2021 06:49 PM
    Edited by Thong Huynh Mon April 05, 2021 06:49 PM
    Hi Ivan,

    I don't think you can. The IBM BPM toolkits are not designed to house stuff related to process instances for example: 
     - You can't start a process by name in toolkits nor looking for ones
     - Anything related to UCA

    These things have to be used within the process apps. 

    Maybe you can use REST API to start your process in your toolkits instead?

    Regards,
    Thong

    ------------------------------
    Thong Huynh
    Sydney NSW
    ------------------------------



  • 3.  RE: Use tw.system.startProcessByName(name, inputValues) to start a process instance from a toolkit

    Posted Tue April 06, 2021 04:29 AM
    Hey Ivan

    Yes this is possible, AS LONG AS your tookit is part of the main App where belongs the Process you want to start.
    The trick is to add a double slash '//' before the name of the process.
    I do it in one of my toolkit to start processes from the main App.

    Eg: if you want to start 'MyProcess' you call '//MyProcess'

    ------------------------------
    Jean Midot
    ------------------------------