12-16-2012 07:38 AM
listidexams.add(idexams);
listexams.add(examsname);
arg0.setVariable("completeexams", listexams);
arg0.setVariable("completeidexams", listidexams);
<extensionElements>
<activiti:formProperty id="esame" type="enum">
<activiti:value id="first_id_of_exams" name="first_element_of_list" />
<activiti:value id="second_id_of_exams" name="second_element_of_list" />
…
…
</activiti:formProperty>
</extensionElements>
12-18-2012 11:27 AM
<activiti:formProperty id="direction" type="enum">
<activiti:value id="left" name="Go Left" />
<activiti:value id="right" name="Go Right" />
<activiti:value id="up" name="Go Up" />
<activiti:value id="down" name="Go Down" />
</activiti:formProperty>
12-19-2012 04:29 AM
12-21-2012 04:29 AM
12-24-2012 05:00 AM
Scanning for projects…
Some problems were encountered while building the effective model for org.activiti:activiti-bpmn-converter:jar:5.12-SNAPSHOT
'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ line 24, column 15
The expression ${version} is deprecated. Please use ${project.version} instead.
The expression ${version} is deprecated. Please use ${project.version} instead.
The expression ${version} is deprecated. Please use ${project.version} instead.
The expression ${version} is deprecated. Please use ${project.version} instead.
The expression ${version} is deprecated. Please use ${project.version} instead.
The expression ${version} is deprecated. Please use ${project.version} instead.
The expression ${version} is deprecated. Please use ${project.version} instead.
The expression ${version} is deprecated. Please use ${project.version} instead.
The expression ${version} is deprecated. Please use ${project.version} instead.
The expression ${version} is deprecated. Please use ${project.version} instead.
It is highly recommended to fix these problems because they threaten the stability of your build.
For this reason, future Maven versions might no longer support building such malformed projects.
————————————————————————
Building Activiti - BPMN Converter 5.12-SNAPSHOT
————————————————————————
————————————————————————
BUILD FAILURE
————————————————————————
Total time: 1.237s
Finished at: Mon Dec 24 10:58:21 CET 2012
Final Memory: 6M/154M
————————————————————————
Failed to execute goal on project activiti-bpmn-converter: Could not resolve dependencies for project org.activiti:activiti-bpmn-converter:jar:5.12-SNAPSHOT: Failed to collect dependencies for [org.activiti:activiti-bpmn-model:jar:5.12-SNAPSHOT (compile), commons-lang:commons-lang:jar:2.4 (compile), com.h2database:h2:jar:1.3.168 (provided), junit:junit:jar:4.8.1 (provided), org.activiti:activiti-engine:jar:5.12-SNAPSHOT (test)]: Failed to read artifact descriptor for org.activiti:activiti-bpmn-model:jar:5.12-SNAPSHOT: Failure to find org.activiti:activiti-rootom:5.12-SNAPSHOT in https://maven.alfresco.com/nexus/content/repositories/activiti/ was cached in the local repository, resolution will not be reattempted until the update interval of activiti has elapsed or updates are forced -> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
12-24-2012 05:07 AM
Scanning for projects…
Some problems were encountered while building the effective model for org.activiti:activiti-bpmn-converter:jar:5.12-SNAPSHOT
The expression ${version} is deprecated. Please use ${project.version} instead.
The expression ${version} is deprecated. Please use ${project.version} instead.
The expression ${version} is deprecated. Please use ${project.version} instead.
The expression ${version} is deprecated. Please use ${project.version} instead.
The expression ${version} is deprecated. Please use ${project.version} instead.
The expression ${version} is deprecated. Please use ${project.version} instead.
The expression ${version} is deprecated. Please use ${project.version} instead.
The expression ${version} is deprecated. Please use ${project.version} instead.
The expression ${version} is deprecated. Please use ${project.version} instead.
The expression ${version} is deprecated. Please use ${project.version} instead.
It is highly recommended to fix these problems because they threaten the stability of your build.
For this reason, future Maven versions might no longer support building such malformed projects.
————————————————————————
Building Activiti - BPMN Converter 5.12-SNAPSHOT
————————————————————————
Downloading: http://download.java.net/maven/2/org/apache/maven/plugins/maven-jar-plugin/2.4/maven-jar-plugin-2.4....
Downloading: https://repository.sonatype.org/content/repositories/apache-snapshots/org/apache/maven/plugins/maven...
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.4/maven-jar-plugin-2...
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.4/maven-jar-plugin-2... (6 KB at 19.5 KB/sec)
————————————————————————
BUILD FAILURE
————————————————————————
Total time: 3.628s
Finished at: Mon Dec 24 11:05:59 CET 2012
Final Memory: 9M/154M
————————————————————————
Failed to execute goal on project activiti-bpmn-converter: Could not resolve dependencies for project org.activiti:activiti-bpmn-converter:jar:5.12-SNAPSHOT: Failed to collect dependencies for [org.activiti:activiti-bpmn-model:jar:5.12-SNAPSHOT (compile), commons-lang:commons-lang:jar:2.4 (compile), com.h2database:h2:jar:1.3.168 (provided), junit:junit:jar:4.8.1 (provided), org.activiti:activiti-engine:jar:5.12-SNAPSHOT (test)]: Failed to read artifact descriptor for org.activiti:activiti-bpmn-model:jar:5.12-SNAPSHOT: Failure to find org.activiti:activiti-rootom:5.12-SNAPSHOT in https://maven.alfresco.com/nexus/content/repositories/activiti/ was cached in the local repository, resolution will not be reattempted until the update interval of activiti has elapsed or updates are forced -> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
12-24-2012 07:26 AM
12-26-2012 10:10 AM
12-26-2012 10:50 AM
BpmnModel bpmnModel = new BpmnModel();
Process process = bpmnModel.getMainProcess();
process.setId("Processoautogenerato");
process.setName("Prenotazione Esame Generata");
bpmnModel.getProcesses().add(process);
StartEvent startEvent = new StartEvent();
startEvent.setId("startEvent1");
startEvent.setName("Start");
startEvent.setInitiator("initiator");
process.addFlowElement(startEvent);
ServiceTask stask = new ServiceTask();
stask.setId("popola");
stask.setName("Popola Esame");
stask.setImplementationType("class");
stask.setImplementation("Popola");
process.addFlowElement(stask);
UserTask task = new UserTask();
task.setId("selectesame");
task.setName("Seleziona Esame");
task.setAssignee("${initiator}");
List<String> lstcandidati = new ArrayList<String>();
lstcandidati.add("Studenti");
task.setCandidateGroups(lstcandidati);
task.setDocumentation("Qui lo studente (${initiator}) seleziona l'esame al quale prenotarsi");
List<FormProperty> formProperties = new ArrayList();
FormProperty formProperty = new FormProperty();
formProperty.setName("Seleziona Esame");
formProperty.setId("selectesame");
formProperty.setType("enum");
formProperty.setRequired(true);
[color=#FF0000]List<FormValue> lstformValue = new ArrayList();
FormValue fv = new FormValue();
fv.setId("id1");
fv.setName("Analisi I");
FormValue fv2 = new FormValue();
fv2.setId("id2");
fv2.setName("Geometria I");
lstformValue.add(fv);
lstformValue.add(fv2);
formProperty.setFormValues(lstformValue);[/color]
formProperties.add(formProperty);
task.setFormProperties(formProperties);
process.addFlowElement(task);
EndEvent endEvent = new EndEvent();
endEvent.setId("endEvent1");
process.addFlowElement(endEvent);
SequenceFlow flow1 = new SequenceFlow();
flow1.setId("flow1");
flow1.setSourceRef("startEvent1");
flow1.setTargetRef("popola");
process.addFlowElement(flow1);
SequenceFlow flow2 = new SequenceFlow();
flow2.setId("flow2");
flow2.setSourceRef("popola");
flow2.setTargetRef("selectesame");
process.addFlowElement(flow2);
SequenceFlow flow3 = new SequenceFlow();
flow3.setId("flow3");
flow3.setSourceRef("selectesame");
flow3.setTargetRef("endEvent1");
process.addFlowElement(flow3);
BpmnXMLConverter converter = new BpmnXMLConverter();
System.out.println(new String(converter.convertToXML(bpmnModel)));
12-28-2012 07:14 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.