cancel
Showing results for 
Search instead for 
Did you mean: 

WF Parked and Posted

Former Member
0 Kudos

Hi

At at customer we have WF running for FI based on an Invoice ID. (barcode).

In the FI WF the user can approve the FI document and then post that document. When the FI document is approved NO FI posted flow is started.

The Fi posted flow will only start when the document is not approved.

Behind the WF we have a customer table that contains information about the barcode (key) and we have also a sort of status in that table.

At the beginning and end of each WF we set the status in that table. So at the beginning of the parked flow - Started in the table, at the end of the parked flow, closed and so on...

In some rare cases, whe a user post the document and it's not approved, the FI posted WF is started and set the Status to started BUT the WF of the parked flow is not finished and he overwrites started with closed...

Bases upon these statussen we have some reports running and in some cases it's not correct..

I have tried different changes in the WF so that the status of the posted flow, starts later when the parked flow is finished but this does not work...

Does anyone has an idea to have a sort of wait statement, that the posted flow can start, when the parked flow is finished?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Create a method that executed this code

´´WAIT UP TO 130 SECONDS``

Put this method inside a task and put it before the Positing step or put this code inside the Positing method if it is custom.

Thanks

Arghadip

KKilhavn
Active Contributor
0 Kudos

My guess is you are using a background task to update the status. Set a requested start deadline of work item creation + 1 minute for this task.