11-12-2011 12:31 AM
public String deploySomething(String resName, String xml)
throws Exception
{
DeploymentBuilder db = m_procEngine.getRepositoryService().createDeployment().name("Poo");
db.addString(resName, xml);
Deployment dep = db.deploy();
String id = dep.getId();
Thread.sleep(5000);
System.out.println("Proc Defs "+m_procEngine.getRepositoryService()
.createProcessDefinitionQuery().count());
return (id);
}
<definitions id="test_definitions"
targetNamespace="http://activiti.org/bpmn20"
xmlns:activiti="http://activiti.org/bpmn"
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL">
<process id="translation" name="Single phase translation">
<startEvent id="start"/>
<sequenceFlow id="flow1" sourceRef="start" targetRef="doTranslate" />
<serviceTask id="doTranslate" name="Translate" activiti:class="TranslationTask"/>
<sequenceFlow id="flow2" sourceRef="doTranslate" targetRef="end" />
<endEvent id="end" />
</process>
</definitions>
11-12-2011 05:48 AM
11-12-2011 09:21 AM
11-05-2014 04:45 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.