CA Service Management

How to skip request workflow task automatically 

Feb 01, 2018 01:11 PM

Hi guys,

 

Consider this scenario:

 

I have a request category with 3 classic workflow task attached:

 

 

So to do this I've followed this steps:

 

1) Put the file upd_val.spl in the folder $NXROOT/site/mods/majic;

 

2) Recycle spel_srvr or restart the ca sdm services;

 

3) Create an action macro using this code:

 

macro::upd_val("cr_wf", 
format("cr = '%s' AND sequence IN (20, 30)", cr.persistent_id), // search over other tasks in the same parent request with seq 20, 30
1, 0, // delays
"status", "SKIP" // new status
);

 

4) Add this action macro to the status on task 10 that most be completed to skip the tasks 20 and 30;

 

 

 

Reference:

 

SPEL: Object update by cdtj

Statistics
0 Favorited
41 Views
1 Files
0 Shares
8 Downloads
Attachment(s)
zip file
upd_val.spl.zip   855 B   1 version
Uploaded - May 29, 2019

Related Entries and Links

No Related Resource entered.