- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2018 10:51 PM
Hello Folks,
I have been developing a workflow and i am stuck in a situation .i.e. when "Task is created the state changes to Work in progress from Open".
Actually I have the same activity being used for multiple conditions and in some cases the task activity state are working as desired i.e. it is in Open state until the user / fulfiller updates the task.
Below is the script activity mentioned For Task:-
task.short_description='US MBS/Oracle User Access Request Form + iExpense for '+current.variables.Eid12+' ('+current.variables.requester_name.name+')';
task.description ='GBL: '+current.variables.gbl12.getDisplayValue() + '\n User Type: '+current.variables.user_type12.getDisplayValue()+'\n Request Type: '+ current.variables.request_type12.getDisplayValue()+'\n SpendSmart Approver: '+current.variables.request_approver12.name;
task.state=2;
I have even tried setting the task state using the "Populate take Variables " in which we can directly set the values on task activity.
Note: there is no business rule written to change the state of task activity when it is created.
Thanks and Advance , appreciate your help .
PFA name " Sate Changes" to find how I have tried setting the task state using the "Populate take Variables " in which we can directly set the values on task activity.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2018 11:05 AM
sanjivmeher I deleted the existing the workflow and created the new one almost same set up. The issue related to Task state automatically going to work in progress was resolved but what was the actual issue I couldn't conclude. This was rework but it worked.
By the way thanks for your valuable assistance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2018 11:32 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2018 11:34 PM
Can you remove state Open from the Set Values. That shouldn't be required. And then run it once again.
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2018 11:41 PM
I will try again and report . I was going through all the business rules written on this table I dint find any where the state is to be changed .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2018 11:58 PM
This time I wasn't setting the Values in the entire task activity still I noticed that it state got change form open to work in progress .
The task activity upadtes as it reads is mentioned below :-
System
- StateWork in ProgresswasOpen
I think I should delete the activity again publish , then checkout and try create the new activity . May be this can work .Sometimes it happen due to malfunctioning . i will update on thing in couple of HRS.
Thanks A lot sanjivmeher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2018 11:05 AM
sanjivmeher I deleted the existing the workflow and created the new one almost same set up. The issue related to Task state automatically going to work in progress was resolved but what was the actual issue I couldn't conclude. This was rework but it worked.
By the way thanks for your valuable assistance