Workflow task activity automatically changes from Open state to work in progress.

Nishant_Kumar
Tera Guru

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.

1 ACCEPTED SOLUTION

Nishant_Kumar
Tera Guru

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


View solution in original post

11 REPLIES 11

Nishant_Kumar
Tera Guru

wait.PNG



Wait for completion is checked.



In the same workflow there are few task activities in which the state of workflow waits at open state until user takes any action on task.


I am not able to get why this is happening.


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.

Nishant_Kumar
Tera Guru

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 .


Nishant_Kumar
Tera Guru

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



01/24/2018 01:50:10



  • 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


Nishant_Kumar
Tera Guru

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