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