Menu
  • HOME
  • TAGS

jBPM - Access signal event data?

jboss,jbpm,bpm,bpmn

I found the problem. When I tried to debug more carefully, I noticed that the process' script task executes when the process starts through the call ksession.startProcess("testing.OA") before the raise of the event which is done through the ksession.signalEvent. This would naturally leed to a null IncomingData object when the...

BPMN gateways execution

gateway,bpmn

Once (either after task 2 or after task 3) Once (after synchronization) is syntactically wrong, as event based gateways must be followed by catching events (or receive tasks) Once (after synchronization or after task 2 or after task 3) Twice (because of implicit flow semantics: parallelization for outgoing flows....

How to setup conditionals for BPMN2 Exclusive Gateway

java,spring,bpmn,camunda

In camunda modeler, click on one of the sequence flows coming out of your exclusive gateway. Then select the "Properties" pane and the "General" subpane. You will see an attribute "Condition". This attribute can be populated with a JUEL expression just like the one that you used for the delegates....

How to query the position of a process instance?

java,bpm,bpmn,camunda

You can get the current position of your process instance using the following code, which will also give you the name of the activity(ies) when the process waits in multiple position. package org.camunda.bpm; import java.util.HashMap; import java.util.List; import java.util.Map; import org.camunda.bpm.engine.ProcessEngine; import org.camunda.bpm.engine.RepositoryService; import org.camunda.bpm.engine.RuntimeService; import org.camunda.bpm.engine.runtime.ProcessInstance; import org.camunda.bpm.model.bpmn.BpmnModelInstance; import...

Does Eclipse BPMN2 Modeler Support timeDate on Timers?

eclipse,jbpm,bpmn

It seems timeDate is hidden by default for the jBPM profile. You can however turn it on in the preferences: Window -> Preferences -> BPMN2 - Editor - Tool Profiles and for jBPM profile, select the checkbox timerEventDefinition -> TimeDate Could you please open a bugzilla to enable this by...

Difference between “Bpmn2 Diagram Editor” and “BPMN2 Process Editor”

java,eclipse,jbpm,bpmn

The BPMN2 Process Editor is the old editor that was used in jBPM5. It's still included for backwards compatibility reason, but we would strongly encourage you to use the BPMN2 Diagram Editor, as this is much more complete. This is also probably the reason why it looks more complex, because...

How to query finished instances of a process definition?

java,bpm,bpmn,camunda

You can get all finished instances of a process using the following code: package org.camunda.bpm; import org.camunda.bpm.engine.HistoryService; import org.camunda.bpm.engine.ProcessEngine; import org.camunda.bpm.engine.RepositoryService; import org.camunda.bpm.engine.history.HistoricProcessInstance; import org.camunda.bpm.engine.repository.ProcessDefinition; import java.util.List; public class AllFinishedProcessInstances { public List<HistoricProcessInstance> getAllFinishedProcessInstances(String processDefinitionName) {...

Is it possible to access a process instance id from within the instance? (jbpm)

jbpm,bpmn

¿Where are you planing to do that? On a "Script Task" you can access to a running process Instance with: System.out.println("processInstanceId = "+kcontext.getProcessInstance().getId()); ...

BPMN how to model repetable tasks

design,modeling,jbpm,bpmn

You can use a loop marker to indicate that a task is repeating. Alternatively you can mark your activity as being multi-instance. There's a sequential variant: And also a parallel variant: If you have a specific termination condition for your loop, i.e. something more specific than "Completed?", you might want...

BPM Engine vs BPM Engine Server

bpm,bpmn

perhaps I am missing your point, but Activiti is really nothing more than a jar file that can be embedded in any other java application. Certainly in order to run Activiti in any meaningful way you need a backing datastore (database) and one or more process definition, but as you...

When does an information system get its own lane in BPMN?

bpmn

I agree with your usage, I generally use lanes for human actors to show responsabilities over a set of tasks. I do not model much lanes for systems: most of the time an automated tasks is under the (business) responsability of an actor of the process.

Compensation in bpmn2

workflow,bpmn

My assumption was not true. Based on activiti documentation: A compensation boundary event has a different activation policy from other boundary events. Other boundary events like for instance the signal boundary event are activated when the activity they are attached to is started. When the activity is left, they are...

How to read BPMN2.0 xml data to jbpm5.5 internally?

jbpm,bpmn

public void readBPMNFileMetaInfo() throws Exception { KnowledgeBuilderConfiguration conf = KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration(); ((PackageBuilderConfiguration) conf).initSemanticModules(); ((PackageBuilderConfiguration) conf).addSemanticModule(new BPMNSemanticModule()); ((PackageBuilderConfiguration) conf).addSemanticModule(new BPMNDISemanticModule()); XmlProcessReader processReader = new XmlProcessReader( ((PackageBuilderConfiguration) conf).getSemanticModules(), getClass().getClassLoader());...

BPMN 2.0 user task forms portability

bpmn

User forms are not part of BPMN standard. As you can see tags related to forms are located under extensionElements tag and are belonging to the specific namespace used with the prefix activiti. extensionElements tag is part of BPMN standard (see section 8.2.3 of BPMN standard 2.0.2 or XML schema)...

How to make Bonita BPM to show an error?

workflow,bpmn,business-process,bonita

The answer to this question will vary depending on the edition of Bonita BPM that you are using. With Community edition: Note that error management will impact process design. You can implement the following scenario: retrieve the error (this can be done by using a custom connector output). store the...

Generate BPMN XML with Javascript

javascript,xml,bpmn

Take a look at the bpmn.io project (http://bpmn.io/). It includes a javascript library to generate BPMN as well as a modeling and rendering module (for BPMN).

How to query running instances of a process definition?

java,bpm,bpmn,camunda

You can query all running process instance of a process using the following code: package org.camunda.bpm; import org.camunda.bpm.engine.ProcessEngine; import org.camunda.bpm.engine.RepositoryService; import org.camunda.bpm.engine.RuntimeService; import org.camunda.bpm.engine.repository.ProcessDefinition; import org.camunda.bpm.engine.runtime.ProcessInstance; import java.util.List; public class AllRunningProcessInstances { public List<ProcessInstance> getAllRunningProcessInstances(String processDefinitionName) { // get process...

What is the appropriate xml format to save a BPMN business process?

bpel,bpmn,workflow-engine

The executable format you need will depend on what the workflow engine you use understands. Having said that: the only format in which you really can "save" the BPMN model without loosing or modifying some of your BPMN execution semantics is BPMN XML, because it's directly defined in the BPMN...

jBPM 6.2 How to add an user that can execute all tasks?

jbpm,bpmn

Create a user with the username "Administrator", or use one of your existing users and add it to the group "Administrators". This gives the user(s) in question access to the task as BusinessAdministrator. This should work for most of your requirements. If you experience any challenges with this approach, another...

Camunda BPMN - accessing variables inside a thread

java,spring,bpmn,camunda

You can set a process variable like Map<String, Object> variables = new HashMap<String, Object>(); variables.put("service", service); runtimeService.startProcessInstanceByKey("ABC", variables); In an expression, you can then write ${service.isThisOrThatEnabled()} The above assumes that SomeService implements the interface java.io.Serializable. If that is not the case, you might create a POJO class that implements Serializable...

Why is the parallel gateway in BPMN 2.0 represented with perpendicular lines?

bpmn

Ugh, it is a plus sign. As stated in the specifications http://www.omg.org/spec/BPMN/2.0/ It just seemed more intuitive to me to represent it with parallel lines when naming it parallel gateway....

Are BPMN sequenceFlow allowed to reference specific activities within another process/subprocess?

bpmn

The correct way to do this would be to create several "none" start events in the global process and then reference the correct one via the targetRef attribute of a sequence flow incoming to the call activity. The spec says on p. 239: "If the Process is used as a...

BPMN event-based gateway with conditional flow

timer,bpmn,camunda,event-gateway

This is not allowed. The outgoing Sequence Flows of the Event Gateway MUST NOT have a conditionExpression BPMN 2.0 Specification Section 10.5.6, page 297 edit: source: http://www.omg.org/spec/BPMN/2.0/PDF...