Discussion:
Replace existing workflow instance after initiation with new versi
(too old to reply)
Steve
2010-05-06 00:33:01 UTC
Permalink
Is there any way I can do this. I had thought of flagging the associated
entity, deleting the workflow and then iniating the new one on all flagged
records?
AdamV
2010-05-08 20:13:41 UTC
Permalink
There's no special built-in way to do this replacement directly.

A few steps will be involved in this:
Make sure your new workflow can be initiated "on demand" (as well as
whatever business logic triggers you are using for normal operations).

Use advanced find to identify all the records of the relevant type which
have associated system jobs of type workflow with the status you are
interested in (perhaps only waiting ones, or failed ones).
Select these records and start the new workflow on demand.

Now through system jobs (again you might use advanced find here)
identify the workflows you want to stop and cancel them.

Ideally start the new ones before cancelling the old, otherwise it might
not be so easy to work out which records need this.

Hope this helps
Adam
Post by Steve
Is there any way I can do this. I had thought of flagging the associated
entity, deleting the workflow and then iniating the new one on all flagged
records?
Loading...