camunda

Post request to external Rest Service using Django - use returned json to update model

浪尽此生 提交于 2020-05-17 06:57:10
问题 I require some advice on the best way to implement the following details using Camunda Rest API and Django: 1) User is presented with a form - Selects the details and then does a POST request to camunda using 'http://localhost:8080/engine-rest/process-definition/key/Process_B_PerProject/start' the details sent in this POST request consist of 3 variables in a JSON RAW : in the form of : {"variables": {"UserID" : {"value" : "user.", "type": "String"}, "OrganisationID" : {"value" : "some value",

Json Post from Django to Camunda

二次信任 提交于 2020-04-30 11:18:19
问题 Further to my earlier post yesterday: Post request to external Rest Service using Django - use returned json to update model I have managed to post data to camunda using Django - request.post. Using the following script: payload = "{\n \"businessKey\": \"SomeValue\",\n \"variables\": {\n \"Organisation_ID\": {\n \"value\": \"SOmeUUID\",\n \"type\": \"String\"\n },\n \"UserID\": {\n \"value\":\"Some User ID\",\n \"type\": \"String\"\n }\n }\n}" However when I start to use variables from the

Json Post from Django to Camunda

五迷三道 提交于 2020-04-30 11:16:25
问题 Further to my earlier post yesterday: Post request to external Rest Service using Django - use returned json to update model I have managed to post data to camunda using Django - request.post. Using the following script: payload = "{\n \"businessKey\": \"SomeValue\",\n \"variables\": {\n \"Organisation_ID\": {\n \"value\": \"SOmeUUID\",\n \"type\": \"String\"\n },\n \"UserID\": {\n \"value\":\"Some User ID\",\n \"type\": \"String\"\n }\n }\n}" However when I start to use variables from the

camunda api auto layout functionality?

倾然丶 夕夏残阳落幕 提交于 2020-02-02 12:01:07
问题 I am using the Camunda BPMN-Model API for generating bpmn 2.0-xml files. However, I can't find a auto-layout functionality in it to create the BPMN-DI information automatically. I know that it's possible to create the rendering components by manually importing to the Camunda modeler, but I am trying to do so automatically. Activity and Yaoqiang seem to implement such a function. Is there any algorithm based on the Camunda model api? There is also a try for the Camunda modeler, but it's

Migrating YAWL files (*.ywl) to BPMN 2.0 schema files

心不动则不痛 提交于 2020-01-23 16:44:45
问题 I'm trying to migrate from YAWL engine to another workflow engine, but I have about 500 (*.ywl) files, which I'm trying to convert to BPMN 2.0 and I think it's not reasonable to convert all of them manually. The question is if there is any tool to convert all of these files automatically? 回答1: Looks like not, you will have to make a parser to translate to bpmn xml. 回答2: Strangely, I just learned about YAWL and I am indeed very interested in Buisness Process Modeling (BPM). In other words, it

Cross-process synchronization in Camunda?

社会主义新天地 提交于 2019-12-25 16:24:46
问题 What cross-process synchronization schemes should be used in the Camunda? Is it possible to implement something like CountDownLatch where the synchronization is being used between different bpm processes? It seems that because of the correlation messages are always synchronous, I can't put a receive task / intermediate catch event in a latch process definition so that latch client processes would correlate on the task/event when they want to join the latch synchronization block (if I try,

How to specify which start event should be called from a BPMN callActivity

我的未来我决定 提交于 2019-12-22 08:08:38
问题 From http://www.omg.org/spec/BPMN/2.0.2/PDF on page 238: If the Process is used as a global Process (a callable Process that can be invoked from Call Activities of other Processes) and there are multiple None Start Events, then when flow is transferred from the parent Process to the global Process, only one of the global Process’s Start Events will be triggered. The targetRef attribute of a Sequence Flow incoming to the Call Activity object can be extended to identify the appropriate Start

Activiti / Camunda change boundary timer with variable

穿精又带淫゛_ 提交于 2019-12-18 13:37:52
问题 I got a special question regarding timer boundary events on a user task in Activiti/Camunda: When starting the process I set the timer duration with a process variable and use expressions in the boundary definition to resolve the variable. The boundary event is defined on a user task. <bpmn2:timerEventDefinition id="_TimerEventDefinition_11"> <bpmn2:timeDuration xsi:type="bpmn2:tFormalExpression">${hurry}</bpmn2:timeDuration> </bpmn2:timerEventDefinition> In some cases, when the timer is

Camunda cannot execute groovy script

孤人 提交于 2019-12-13 14:09:56
问题 Here is my dependencies. compile group: 'org.camunda.bpm.springboot', name: 'camunda-bpm-spring-boot-starter-webapp', version: '3.0.0' compile group: 'org.camunda.bpm.springboot', name: 'camunda-bpm-spring-boot-starter', version: '3.0.0' compile group: 'org.codehaus.groovy', name: 'groovy-all', version: '2.5.2', ext: 'pom' Here is the error message, it seems like cannot find engine. org.camunda.bpm.engine.exception.NullValueException: Can't find scripting engine for 'groovy': scriptEngine is

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