Request state value is not changing when using with task creation in workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2017 07:15 AM
Hi all,
I am having problems with request state not changing value in workflow.
- I am having a workflow that is triggered when our business request is created (it is extending Request table).
- In next step I am using Set Values activity to set request_state=Approved and state=in_process
- Then I am creating a business task (it is extending Task table).
- Then I am using Set values activity again, but now setting the request_state=Closed complete and state=Closed complete
The problem is that when workflow is not waiting for creation of task (Wait for completion checkbox is unchecked) the value of request_state is still Approved and not Closed complete.(The same happens when I delete the creation of task completely).
When workflow is waiting for the creation of task the request_state is set to Closed complete.
For me creation of task should not have any connection to request state.
Thanks for responding,
Karolina
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2017 08:13 AM
What would you like the workflow to wait on? If you simply have some Set Value activities, it will execute one right after the other. It sounds like you want it to wait for something, but not create task. Is that correct?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2017 01:15 AM
This is how my workflow looks like:
And I want to get rid of Create Task activity. Bu when I do that the Request State is set to Work in Progress as a result of the workflow and I want it to be Closed Complete. So it looks like the second Set Values activity did not set the value of the Request State properly.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2017 03:06 PM
Hi Karolina,
It might be a race condition. Since the workflow is proceeding "in the background", it might not be done with the first record update when the second comes along. If you take out the Create Task, the workflow basically says "Set these values, then sent those values". Is it supposed to wait for something before doing the second set? It doesn't seem like much of a workflow if all it is doing is setting the state, and then changing it again immediately.