You are viewing limited content. For full access, please sign in.

Question

Question

How to update a form on an interval

asked on September 12, 2016

I have a form that gets created by Workflow and assigned to a team. I need to have the Form process check Workflow for an updated status periodically. I've attached a Timer Catch Event to the User Task, and I've got it repeating on a set interval. At each interval it invokes a Workflow Service Task. However, the problem that I'm having is that when the timer fires, the User Task gets terminated, and then the Service Task fires. It appears to be running the Workflow just fine, but by then the User Task is gone. It's not following any of the outflows either.

Here's the diagram:

 

The outflows for the User Task:

 

The settings for the Timer Catch Event.

 

Am I missing something here?

 

0 0

Answer

SELECTED ANSWER
replied on September 13, 2016

It makes sense to me. For workflow service task, if you don't need other outflow (to a user task or something else), just put a normal end event to remove that error. The end event will only end that branch, indicating the workflow service task has finished, not the whole process. Can you try this and let me know if the user task still gets terminated?

 

I have another question, did the user task get terminated after 10 mins or immediately when timer gets fired? Thanks.

 

0 0

Replies

replied on September 12, 2016

You might want to choose a default outflow for the user task in case the instance matches none of the requirements, you might see the instance is terminated but without any description; and from my view of point, you need to add an outflow for the above service task. You might click the validate button (which is a tick button located at the right top next to save button) to see whether there is something we have accidentally missed when designing the process.

 

Above is just some thoughts which may not solve your problem because we don't know the root cause yet. Your problem is when the timer fires, the user task terminated, right? May I ask which version of Forms are you using? And could you provide more information how the user task is terminated, like the user task didn't select a form, or the user task wasn't assigned, etc.? For example, you may go to the instances metric page of that process, click on the dropdown menu and see the error log. Because based on your design, the timer shouldn't terminate the user task. Correct behavior for it should be the timer will run every 10 minutes to fire a service task as long as user task is active. Thus we need the reason why the user task is terminated to further analyze the issue you have. 

0 0
replied on September 13, 2016 Show version history

There error I'm getting is:

This process cannot end without an end event. [LFF5407-NoProcessEndEvent]

It appears that this is because the Service Tasks don't have any outflow. I don't really think I want any outflow other than to set the appropriate variable from Workflow. I tried having them feed back to the User Tasks, but that just causes duplicate tasks to be created.

What I need is for the task to sit there, periodically getting updated data from Workflow until either a user acts on the task, or the data from Workflow indicates one of the other conditions. Am I making sense?

 

0 0
SELECTED ANSWER
replied on September 13, 2016

It makes sense to me. For workflow service task, if you don't need other outflow (to a user task or something else), just put a normal end event to remove that error. The end event will only end that branch, indicating the workflow service task has finished, not the whole process. Can you try this and let me know if the user task still gets terminated?

 

I have another question, did the user task get terminated after 10 mins or immediately when timer gets fired? Thanks.

 

0 0
replied on September 13, 2016

OK. I didn't realize that each branch needed to be completed individually. Once I created an end event for the Service Tasks the process started working correctly.

Thank you!

 

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.