Hi,
have checked related threads?
Action Macro to skip WF Task
Automatically completing workflow task
the only thing you need is to check for property before skipping task, here is code example for chg because i haven't env with cr wfs:
send_wait(0, top_object(), "call_attr", "prp", "sync_fetch", "DYNAMIC", format("object_id = %d AND property = 123456 AND value = 1", chg.id), -1, 0);
if (msg_error()) {
logf(ERROR, "%s > sync_fetch failed", persistent_id);
} else {
if (msg[1] > 0) {
logf(SIGNIFICANT, "%s > property found, skipping task", persistent_id);
send_wait(0, this, "call_attr", "status", "set_val", "SKIP", "SURE_SET");
}
}
Regards,
Timur