CA Service Management

Expand all | Collapse all

Automatically completing workflow task

Jump to Best Answer
  • 1.  Automatically completing workflow task

    Posted 11-21-2017 08:04 PM

    Hi in R14 will like to know with the change order classic workflows  when you complete task 100 task 200 will go pending which will then automatically complete or skip that task, then move onto the next task.

     

    I know that action macro could be used, but don't see how this could be done via the system.



  • 2.  Re: Automatically completing workflow task

    Posted 11-22-2017 03:35 PM

    Hello,

     

    Can you provide additional details to what you are trying to do with workflow?  Can you provide a use case that describes what it is you're attempting to achieve?



  • 3.  Re: Automatically completing workflow task

    Posted 11-22-2017 05:46 PM

    Hi David

    So this will be around the change order workflows

    for Example you have the below workflow task.

     

     

    When a user completes task 100 in the workflow, Task 150 will automatically be set to skip then move to task 250 will go pending, will still want task 150 into the workflows but its should be no human action required on this task.

     

     

     



  • 4.  Re: Automatically completing workflow task

    Posted 11-25-2017 05:55 PM

    What is the purpose of task 150?



  • 5.  Re: Automatically completing workflow task
    Best Answer

    Posted 11-23-2017 09:06 AM

    hi,

    you can create action macro and attach it as pending task behavior, code could be:

    // switching task to COMP status
    send_wait(0, this, "call_attr", "status", "set_val", "COMP", "SURE_SET");

    you can use COMP (Completed) status code or SKIP or whatever you want which will match task behaviour.

     

    Regards,

    cdtj



  • 6.  Re: Automatically completing workflow task

    Posted 11-23-2017 03:32 PM

    Thanks cdtj I will give that a go



  • 7.  Re: Automatically completing workflow task

    Posted 11-30-2017 10:14 PM

    Thanks cdtj!

     

    MeteshKeshav1307450 let us know if cdtjs suggestion worked out for you or if you still need help on this one.


    Thanks,
    Mike



  • 8.  Re: Automatically completing workflow task

    Posted 12-03-2017 02:27 PM

    Hi this will work for me thanks guys



  • 9.  Re: Automatically completing workflow task

    Posted 02-01-2018 07:07 AM

    Hi cdtj,

     

    I have this scenario on my enviroment:

     

    On the task 1, if the status is APP then the two next tasks should be canceled.

    If the status on the 1st task is APP2 then the next task should be pending.

     

    How can I create a action macro to this behavior?

     



  • 10.  Re: Automatically completing workflow task

    Posted 02-01-2018 07:08 AM

    Hi guys,

     

    I have this scenario on my enviroment:

     

    On the task 1, if the status is APP then the two next tasks should be canceled.

    If the status on the 1st task is APP2 then the next task should be pending.

     

    How can I create a action macro to this behavior?