Hello All,

I have a HTML Dialog. In the Logic I use the Trigger activity to call a Business Process. It works, but it creates a task.

Is there a way to be invoked immediately and not create and assign a task ? My process is pure server-side logic.

Best Regards, Yordan Yunchov

asked 20.07.2016 at 07:48

Stelt0's gravatar image

accept rate: 15%

If you don't want a task and an asynchronous execution then a Callable Sub Process could do the job better. Just put your target process logic in BPM process of kind 'Callable Sub Process' and invoke it from the Html Dialog by using the (Subprocess) 'Call' Activity.alt text


answered 21.07.2016 at 08:51

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
accept rate: 68%

edited 21.07.2016 at 08:52

But what if I set the responsible Role to SYSTEM ?

As a workaround we called process via Ivy Script and Signals so that we did not changed the project type.

(21.07.2016 at 09:07) Stelt0 Stelt0's gravatar image

As long as you do not require a return value from the called process this is also a good solution. Or do you send the result back as signal?

(21.07.2016 at 10:04) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image

currently it is Async, but if we decide to make it Sync, I would rather change the process type, as you suggested.

(21.07.2016 at 10:08) Stelt0 Stelt0's gravatar image

- Process A has a HTML dialog
- Process B has a task switch
- If user click a button in HTML dialog, it will trigger process B. => 1 case of process A and 1 case of process B is created. We do not need the case of process A.
How can we implement without creating the case of process A.

I follow the guideline of Reguel, inside the callable process I have a task switch. It leads to the error like this:

Caused by: java.lang.IllegalStateException: TaskSwitch element (Role Approval <15A82F10A6717E03-U60-f28>) is not permitted inside a sub process that was invoked from a User Dialog process.
 at ch.ivyteam.ivy.bpm.engine.internal.model.bpmn.TaskSwitchElementExecutorAdapter.checkIllegalTaskSwitchUsage(TaskSwitchElementExecutorAdapter.java:105)
     at ch.ivyteam.ivy.bpm.engine.internal.model.ProcessElement.lambda$0(ProcessElement.java:215)
     at ch.ivyteam.ivy.bpm.engine.internal.model.ProcessElement.executeInElementContext(ProcessElement.java:286)

 at ch.ivyteam.ivy.bpm.engine.internal.model.ProcessElement.execute(ProcessElement.java:215)
 at ch.ivyteam.ivy.bpm.engine.internal.core.ProcessElementExecution.execute(ProcessElementExecution.java:37)

Is there a way to trigger another business process (by using Trigger, Signals, Callable sub,...) from a HTML dialog without persisting the ICase of the current business process?

Thanks and regards,


answered 28.02.2017 at 10:07

lttung's gravatar image

accept rate: 0%

edited 01.03.2017 at 06:52

In classical workflows you need a traceable history and therefore always need to know the creator task. But I guess you should be able to create a completely detached task/case if you create it via a REST or SOAP webservice. For a REST example see the ConnectivityDemos -> com.axonivy.connectivity.rest.provider.ApprovalService

(01.03.2017 at 09:07) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image
Your answer
toggle preview

Follow this question

By Email:

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



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



Asked: 20.07.2016 at 07:48

Seen: 1,150 times

Last updated: 01.03.2017 at 09:09