03-13-2012 09:44 AM
org.activiti.engine.ActivitiException: Invalid reference in 'bpmnElement' attribute, process adhoc_One_Script_Task_Workflow not found | One_Script_Task_Workflow.bpmn20.xml | line 1 | column 1120
at org.activiti.engine.impl.util.xml.Parse.throwActivitiExceptionForErrors(Parse.java:186)
at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:222)
at org.activiti.engine.impl.bpmn.deployer.TenantAwareBpmnDeployer.deploy(TenantAwareBpmnDeployer.java:53)
at org.activiti.engine.impl.persistence.deploy.DeploymentCache.deploy(DeploymentCache.java:38)
at org.activiti.engine.impl.persistence.entity.DeploymentManager.insertDeployment(DeploymentManager.java:42)
at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:58)
at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:30)
at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)
at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:42)
at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:42)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:40)
at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
at org.activiti.engine.impl.RepositoryServiceImpl.deploy(RepositoryServiceImpl.java:46)
at org.activiti.engine.impl.repository.DeploymentBuilderImpl.deploy(DeploymentBuilderImpl.java:106)
at org.activiti.kickstart.service.KickstartServiceImpl.deployKickstartWorkflow(KickstartServiceImpl.java:103)
…
KickstartWorkflowDto dto = new KickstartWorkflowDto();
dto.setName("One Script Task Workflow");
dto.setDescription("Simple workflow definition containing one script task");
ScriptTaskDto scriptDto = new ScriptTaskDto();
scriptDto.setId("theScriptTask");
scriptDto.setName("Execute script");
scriptDto.setScriptFormat("juel");
scriptDto.setResultVariableName("myVar");
scriptDto.setScript("${ping.increment()}");
dto.addTask(scriptDto);
KickstartService service = new KickstartServiceImpl(processEngine);
String deployId = service.deployKickstartWorkflow(dto);
03-13-2012 10:39 AM
process.setExecutable(true);
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.