Skip to Content
0
May 30, 2011 at 09:16 AM

Issue with - Reevaluate Rules of Active Work Items

137 Views

We have a workflow which is a copy of the standard ESS Leave Request Workflow: PT_TIMREQ - WS12300111.

We have added a modelled-deadline to the approval dialog step (after 5 days).

In the deadline branch we have a step to find the manager of the "current manager" and set this as the agent in the workflow container.

Immeditely following this (still in the deadline branch) we raise an event (which we have called reavaluate_agents) on the workflow Class.

In the workflow header this event has been defined to have a Receiver Type as: "Reevaluate Rules of Active Work Items".

Now - this all works great until AFTER the re-evaluate of agents has occured. The next higher manager receives the work item in his inbox and can approve it. The approval is written to the document database and when the RPTARQPOST program runs the absence is written to the 2001 infotpye - perfect so far...

However, the work item is still in the managers inbox to be executed. It still has the status "ready" and can be executed again. This time of course no leave records show so there is nothing to do.

Why hasn't the work item completed? How can I get it to complete?

If I look at the workitem in SWIA I can manually set it to COMPLETE and the overall workflow is then finished.

Has anyone else had this strange behaviour? Maybe a bug in the reevalution?