11-29-2010 08:05 AM
public class UseCaseIndexerCreateWidgetDeployer {
public static void main(String [] args)
{
ProcessEngine processEngine = new ProcessEngineBuilder()
.configureFromResource("activiti.cfg.xml").buildProcessEngine();
RepositoryService repositoryService = processEngine.getRepositoryService();
DeploymentBuilder deployment = repositoryService.createDeployment();
deployment.addClasspathResource("org/idika/galaxy/usecase1/forms/UsecaseIndexerCreateWidget.bpmn20.xml");
deployment.addClasspathResource("org/idika/galaxy/usecase1/forms/search_document.form");
deployment.addClasspathResource("org/idika/galaxy/usecase1/forms/create_widget.form");
deployment.name("UsecaseIndexer");
deployment.deploy();
//repositoryService.deleteDeployment("110");
processEngine.close();
System.out.println("Finished deploying");
}
}
processEngine = new ProcessEngineBuilder().configureFromResource("activiti.cfg.xml").buildProcessEngine();
runtimeService = processEngine.getRuntimeService();
formService = processEngine.getFormService();
repositoryService = processEngine.getRepositoryService();
taskService = processEngine.getTaskService();
Object startForm = formService.getRenderedStartForm("usecase_indexer_createwidget:1");
System.out.println("Start search form … "+ startForm);
Map<String, Object> variables = new HashMap<String, Object>();
String fname = "app_fn";
String lname="app_ln";
variables.put("firstName", fname);
variables.put("lastName", lname);
variables.put("doc_found", Boolean.FALSE);
ProcessInstance pi = runtimeService.startProcessInstanceByKey("usecase_indexer_createwidget", variables);
TaskQuery taskquery = taskService.createTaskQuery();
Task task = taskquery.processInstanceId(pi.getId()).singleResult();
processEngine.close();
System.out.println("Finished Indexer Usecase flow");
Nov 29, 2010 6:24:47 PM org.activiti.engine.impl.ProcessEngineImpl <init>
INFO: ProcessEngine default created
Nov 29, 2010 6:24:47 PM org.activiti.engine.impl.bpmn.deployer.BpmnDeployer deploy
INFO: Processing resource org/idika/galaxy/usecase1/forms/create_widget.form
Nov 29, 2010 6:24:47 PM org.activiti.engine.impl.bpmn.deployer.BpmnDeployer deploy
INFO: Processing resource org/idika/galaxy/usecase1/forms/UsecaseIndexerCreateWidget.bpmn20.xml
Nov 29, 2010 6:24:48 PM org.activiti.engine.impl.bpmn.parser.BpmnParse parseDefinitionsAttributes
INFO: XMLSchema currently not supported as typeLanguage
Nov 29, 2010 6:24:48 PM org.activiti.engine.impl.bpmn.parser.BpmnParse parseDefinitionsAttributes
INFO: XPath currently not supported as typeLanguage
Nov 29, 2010 6:24:48 PM org.activiti.engine.impl.bpmn.deployer.BpmnDeployer deploy
INFO: Processing resource org/idika/galaxy/usecase1/forms/search_document.form
java.lang.NullPointerException
at org.activiti.engine.impl.form.JuelFormEngine.getFormTemplateString(JuelFormEngine.java:58)
at org.activiti.engine.impl.form.JuelFormEngine.renderStartForm(JuelFormEngine.java:34)
at org.activiti.engine.impl.cmd.GetRenderedStartFormCmd.execute(GetRenderedStartFormCmd.java:61) …..
11-29-2010 08:37 AM
11-29-2010 09:16 AM
11-29-2010 09:31 AM
11-29-2010 09:40 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.