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

SanjivMeher
Kilo Patron
Kilo Patron

Can you post a screenshot of your workflow?



Also do you have any business rule which runs on update, which could be updating it?



Please mark this response as correct or helpful if it assisted you with your question.

Basically my requirement is keep the state of task into open state until user himself/herself takes any action.



snapshot of the workflow is attached below



workflows.PNG


Do you have Wait for task completion checked in you task workflow activity?



I think, there should be a BR on this table which runs on update, which is updating the state. I don't see anything in the workflow. You may try deactivating all the BR and try. take a screenshot of the BRs before deactivating



Please mark this response as correct or helpful if it assisted you with your question.

Business Case is to keep the task to open until any action is taken. Actually It was working Fine until we had UAT testing round-1...When this Catalog item went for second round of UAT testing the issue came up.



I noticed that when the task is created it goes to Open state but quickly the state changes to work in progress.


sanjivmeher