BPM, Workflow, and Case

BPM, Workflow, and Case

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

 View Only
  • 1.  Task Creation

    Posted Wed September 11, 2024 10:36 AM

    I want to insert the task id of ATM Cash Add - Approver to my database  as soon as it was created without having to get inside of the task.

    The Add Cash Approver Client Side Human Service is made as a task. 



    ------------------------------
    Ravindu Kodithuwakku
    ------------------------------



  • 2.  RE: Task Creation

    Posted Wed September 11, 2024 10:58 AM
    1. Create a local variable (process-level) to hold the task Id - say: addCashTaskId.
    2. Attach a zero-minute timer to the activity/task.
    3. Make sure that 'Interrupt Activity' is not checked.
    4. In the pre-script of the timer set local variable's value to:
      tw.local.addCashTaskId = tw.system.step.task.id; 
    5. Route the flow from the timer to the service that will insert the task id of 'ATM Cash Add - Approver' into the database. 

    Hope this helps!



    ------------------------------
    Ajay Katre
    Salient Process
    ------------------------------