Hi everyone

So I have a process with a User Task that has a signal boundary event that listens to a certain signal X. After the user task is finished I check some values and depending on that I want to send the same signal X. See the image below:

no alt text

But when that signal is sent I get the following exception:

java.lang.IllegalStateException: State of Task must be one of the following values CREATED, RESUMED but is DESTROYED
  at ch.ivyteam.api.API.checkObjectState(API.java:323)
  at ch.ivyteam.ivy.workflow.internal.Task.end(Task.java:2642)
  at ch.ivyteam.ivy.workflow.internal.Task$49.execute(Task.java:2618)
  at ch.ivyteam.ivy.persistence.base.AbstractPersistencyService.execute(AbstractPersistencyService.java:176)
  at ch.ivyteam.ivy.persistence.base.AbstractPersistencyService.execute(AbstractPersistencyService.java:233)
  at ch.ivyteam.ivy.persistence.base.ClassPersistencyService.execute(ClassPersistencyService.java:660)
[...]

I uploaded a demo project here: https://drive.google.com/file/d/0B3V8Sh7Fl7FXR3dzMFhzVzJlTEk/view?usp=sharing

Thanks in advance

asked 05.07.2016 at 14:08

Lars%20Tuchel's gravatar image

Lars Tuchel
(suspended)
accept rate: 60%

Does it work if you remove the Task-End-Event after the Signal-Boundary-Event?

(05.07.2016 at 14:51) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image

No, still the same exception

(05.07.2016 at 16:01) Lars Tuchel Lars%20Tuchel's gravatar image

This exception can happen because of different reasons.

Mainly when the current task has been destroyed by a signal. In this case the signal to destroy a task is sent in the same task, so the task did destroy itself. This is the correct behaviour because the listening boundary Signal Event is also active when the task is in state RESUMED.

As a workaround you can place a task switch element before the sending script element and configure the task switch to execute the task as system. So the task where the boundary signal event is listening on is in state DONE and therefore not in scope of the sending signal event.

link

answered 13.07.2016 at 10:03

Flavio%20Sadeghi's gravatar image

Flavio Sadeghi ♦♦
(suspended)
accept rate: 75%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×147
×37
×9

Asked: 05.07.2016 at 14:08

Seen: 6,047 times

Last updated: 13.07.2016 at 10:03