after talking to Bernd at the JAX, we decided to migrate from "Activiti" to "Camunda bpm".
The Activiti Modeler supports adding a form properties to events or user tasks in a simple way. Right now I have not found any thing like that in your modeler.
We use those build-in form properties to render simple forms in our own GWT widgets.
I looked at the roadmap and found the feature "Taskforms for rapid prototyping".
Is this meant as the replacement?
Is it possible to add such form-properties directly in xml?
Thx,
Michael
StartFormData formData = this.activitiFormService.getStartFormData(processDefinitionId);
TaskFormData formData = this.activitiFormService.getTaskFormData(taskId);
Hi Michael.
Thanks already. For me it would be interesting how complex the forms are and what role designs that in your approach. And what you are maybe missing using the form properties. And why simple HTML forms do not work in that case.
For the generic forms: use the tasklist of camunda BPM 7.0 and start a process instance or work on a task which has no formKey configured. Then you will see the generic form. For clicking through a process model this might be sufficient. Or what do you think? We are pretty eager to hear feedback on this.
So actually what I try to figure out what
- Use cases (prototyping, productive generic forms with auto-layout, productive forms with real form builder, …)
- Roles (developer, consultant without HTML knowledge, …)
- Tool support (XML Editor, camunda modeler with simple table as with the form properties, form builder, …)
We have for the UI integration and what would be the best shot to address that within camunda BPM.
Hope that gets clearer? I unfortunately have to write a estimation and offer right now – so just a short answer (but at least one in the time I am procrastinating ;-)).
Cheers
Bernd
The posts are very interesting, and some topics are very equal to that what we want to to. I'm currently working on a HTML5 Platform (AngularJS), very close to the takslist and we want do generate complex frorms with panels, tables and tabs.
But to get this possible we have to enrich the bpmn file. Now you wrote two things to this. The first one is do include a JSON as a fromKey.
The second thing was to include own XML afterwords? But both I didn't got handeld.
Hier is a example what i try but the modeler throws exceptions:
<bpmn2:userTask id="UserTask_1" activiti:assignee="John" name="User Task">
<bpmn2:incoming>SequenceFlow_4</bpmn2:incoming>
<bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing>
<bpmn2:myFromTag>
<bpmn2:panels>
<bpmn2:panel>
<bpmn2:fields>
<bpmn2:field name="Feld 1" id="field1">
<bpmn2:validation></bpmn2:validation>
</bpmn2:field>
</bpmn2:fields>
</bpmn2:panel>
<bpmn2:panel>
<bpmn2:fields>
<bpmn2:field name="Feld 2" id="field2">
<bpmn2:validation></bpmn2:validation>
</bpmn2:field>
</bpmn2:fields>
</bpmn2:panel>
</bpmn2:panels>
</bpmn2:myFromTag>
</bpmn2:userTask>
If i want to include a simple extensionElement like the following, i can't run the projekt in jboss.
<bpmn2:userTask id="UserTask_1" activiti:assignee="John" name="User Task">
<bpmn2:incoming>SequenceFlow_4</bpmn2:incoming>
<bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing>
<bpmn2:extensionElements></bpmn2:extensionElements>
</bpmn2:userTask>
The error:
12:03:16,378 SEVERE [org.camunda.bpm.engine.impl.interceptor.CommandContext] (ServerService Thread Pool -- 202) Error while closing command context: org.camunda.bpm.engine.ProcessEngineException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'bpmn2:extensionElements'. One of '{"http://www.omg.org/spec/BPMN/20100524/MODEL":outgoing, "http://www.omg.org/spec/BPMN/20100524/MODEL":ioSpecification, "http://www.omg.org/spec/BPMN/20100524/MODEL":property, "http://www.omg.org/spec/BPMN/20100524/MODEL":dataInputAssociation, "http://www.omg.org/spec/BPMN/20100524/MODEL":dataOutputAssociation, "http://www.omg.org/spec/BPMN/20100524/MODEL":resourceRole, "http://www.omg.org/spec/BPMN/20100524/MODEL":loopCharacteristics, "http://www.omg.org/spec/BPMN/20100524/MODEL":rendering}' is expected. | load-approval.bpmn | line 17 | column 34
The namespaces:
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100501/BPMN20.xsd" xmlns:zalando="http://www.zalando.de/bpmn" id="_PFHy0KHxEeKieY6lCgTIRA" targetNamespace="http://activiti.org/bpmn">
Maybe you can help me. It must be a problem with the namespaces. I tried to find the extensionElements in http://www.omg.org/spec/BPMN/20100501/BPMN20.xsd and http://www.omg.org/spec/BPMN/20100501/BPMNDI.xsd. But I could't find a extensionElements therein the schema.
Cheers,
Michael