Hi All,
I am creating a CRM Workflow.
Scenario :
1. Initially the status of document is OPEN.
2. Once it gets APPROVED, it should go for next level approval.
3. If it gets REJECTED, the notification should go to some users.
Now, when the first approver APPROVES the document, the workflow log still contains the value of status as OPEN in the attribute of business object.
So what I did is, I simply created a custom event. Triggered that event whenever the status is set to APPROVED or REJECTED.
Now used a WAIT FOR EVENT step in workflow. When this step gets completed, then on the basis of status of document, sent it for next level approval or sent the notifications.
Now the problem is even in this case the log is showing the initial status itself. Then I used a WAIT for 30 seconds. Now it is working fine.
So my only concern is that is there any other way to sort this problem. How can i just make a delay in my workflow so that it gets the updated value from the DB. Wait for 30 seconds is not recommended to use.
Please suggest.
Regards,
Guddan
Edited by: guddan on Jun 3, 2011 1:47 AM