bpmn

How to set global process variables in Camunda-BPM?

若如初见. 提交于 2019-12-12 20:03:22
问题 I have a simple bpmn process in which i am using 2 service task,I am executing my process by using processEngine.getRuntimeService().startProcessInstanceByKey("Process_1", variables); where my variables is as follows: Map variables = new HashMap(); variables.put("a", 2); variables.put("b", 5); Service task 1 implements an Addition java class and service task 2 implements a Multiplication class. Now I want to have 3 variables (constants) c = 5 , d = 10 , e = 2 so that I can use c for service

camunda Cannot find task with id task is null

大憨熊 提交于 2019-12-12 02:32:08
问题 I'm beginner in Camunda. I would like to complete a task. So I start an instance by calling : http://localhost:8080/engine-rest/process-definition/key/approve-loan/submit-form via Postman and POST request with following data : { "variables": { "customerId": {"value":"Niall","type":"String"}, "amount":{"value":"100","type":"String"} } } and Content-Type : application/json I have the following output : { "links": [ { "method": "GET", "href": "http://localhost:8080/engine-rest/process-instance

How to set Parameter in WorkItem to be reached within BPMN Process in jbpm-WorkBench

佐手、 提交于 2019-12-12 01:25:02
问题 I have created a custom WorkItem with some parameters, which I have registered in WorkDefinitions.wid file. Then in Business Process I also create Variable Definitions for the entire Process and reference those from WD.wid of my custom WorkItem to those created in BP. WorkItem execute the code, which takes those parameters from the form after starting the process. For this purpose I use getParameter()- method; It looks as follows: public void executeWorkItem(WorkItem workItem, WorkItemManager

$.parseXML cannot parse XML with script tag inside

感情迁移 提交于 2019-12-11 13:05:34
问题 I'm trying to parse the following BPMN 2 XML with $.parseXML : <?xml version="1.0" encoding="UTF-8"?> <definitions id="Definition" xmlns:tns="http://www.jboss.org/drools"> <process processType="Private" isExecutable="true" id="com.sample.bpmn" name="Sample Process" tns:packageName="defaultPackage" > <scriptTask id="_2" name="Sample Script" scriptFormat="http://www.java.com/java"> <script>person.id</script> </scriptTask> </process> </definitions> but it returns with the following: Uncaught

JBPM: How to run a sql query from a service task?[ver 6.2]

我是研究僧i 提交于 2019-12-11 11:47:08
问题 My objective is to get data from a table stored in MySQL db. For that I have created a custom service task which pulls out the relevant data using hibernate. It works as expected when I run it as a java application on Eclipse. It complains that it is not able to find the required 'persistence unit' when run on the server. I'm pushing my project using git onto kie-workbench(not sure if it's a good way) and had to make a few modifications to couple the work item with work item handler. Work

Multiple instances on a lanes BPMN

烂漫一生 提交于 2019-12-11 10:46:39
问题 I have seen some BPMN models that have a "multiple instance" attached to the pool (3 vertical lines on the bottom of the pool). I think this represents that multiple persons are executing all those tasks on paralell. My question is if it is valid to do that, but on a lane. If it is possible to attach a "multiple instance" sign on a single lane on a model to represent that multiple persons execute this tasks. (I am currently grading some tests and I came up with this question) 回答1: Reading

No process engine found. camunda Webapp cannot work without a process engine

左心房为你撑大大i 提交于 2019-12-11 06:55:33
问题 When I set up a camunda BPMN platform, I got the following error HTTP Status 500 - org.camunda.bpm.webapp.impl.IllegalWebAppConfigurationException: No process engine found. camunda Webapp cannot work without a process engine Confirming that the both the '/camunda' and '/engine-rest' is deployed and running in Tomcat. But /engine-rest returns 404 with following error. description : The requested resource is not available. Please help!. 回答1: You need to configure the shared process engine for

how to develop an add-in for visio

无人久伴 提交于 2019-12-11 03:38:53
问题 I want to create an add-in to visio so that I can draw BPMN diagrams (Business Process Modeling Notation). A similar work is available here: http://www.interfacing.com/free-visio-bpmn-modeler. But I want to create my own icons(notations) and make it domain specific. Please help me? How can I do this? What languages do I have to use? 回答1: You can develop add-ins for Visio using the Visio SDK. There are several versions, of which the 2010 SDK is the most recent. It contains samples written in C

How to setup conditionals for BPMN2 Exclusive Gateway

微笑、不失礼 提交于 2019-12-10 17:18:16
问题 I'm using Camunda BPMN2 for the first time in my spring project and trying to get my head around a couple of things ... In my applicationContext, I have the following block to setup Camunda: <!-- Setup BPMN Process Engine --> <bean id="processEngineConfiguration" class="org.camunda.bpm.engine.spring.SpringProcessEngineConfiguration"> <property name="processEngineName" value="engine" /> <property name="dataSource" ref="dataSource" /> <property name="transactionManager" ref="transactionManager"

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

非 Y 不嫁゛ 提交于 2019-12-10 11:55:29
问题 In jBPM 6.2, we can assign an user task to either an actor or a group such that they are the potential owners of these tasks. Is there an user that we can define in code or bpmn file so that he can execute all the user tasks regardless of the fact that the task is assigned to him or not? 回答1: 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