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

ankit_sharma487
Kilo Guru

Did you check if there is some BR running globally. Or is it only this RITM/task realted


I saw all the Business rule but din't find any. When I had developed this catalog item and it went for first round UAT testing there wasn't sun issues later on there we were some changes made on this catalog item and its workflow , after that I have been facing such issue.



But anyways it has finally been resolved