Request state value is not changing when using with task creation in workflow

karola1
Kilo Contributor

Hi all,

I am having problems with request state not changing value in workflow.

  1. I am having a workflow that is triggered when our business request is created (it is extending Request table).
  2. In next step I am using Set Values activity to set request_state=Approved and state=in_process
  3. Then I am creating a business task (it is extending Task table).
  4. 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

7 REPLIES 7

Chuck Tomasi
Tera Patron

HI Karolina,



If you check "Wait for completion", the workflow will wait until that task is complete before moving on to the next workflow activity. Check that box and see if it behaves as you intend. If not, let me know what the desired intent is.


Sorry I have not explained what is the end goal for me



I have checked the box and everything worked as it supposed to work, but my intention is to get rid of that task creation. We had this creation before in our workflow but we decided to remove it and now we have problems with request_state not having a proper value. So now I am looking for a way to remove this task creation and have request_state set to Closed complete at the end.



Thanks for quick answer!


Is it as simple as removing the Create Task activity from the workflow?



FYI - screenshots of your workflow may help here.


Sorry I no longer have access to my PC, so I can't send a photo today.



But i will try to explain it. My workflow (for investigating the


issue) is described in points 1-4 in my original post, so I have 3 acitivities in workflow. (Set value, create task, set value). The problem is that when I delete creation of task, the request state is not set properly. It looks like only the first Set Value activity took place, which is strange because the workflow is ending successfuly.



Have in mind that 'state' value is set properly in every case, I have only problems with 'request state'.