06-12-2013 04:07 AM
<serviceTask id="servicetask1" name="MyTaskName" activiti:class="com.example.MyTask" activiti:extensionId="MyTask">
in theory what i should do is (pseudocode)
process = magic.getProcess();
for(MyTask task: process.getTaskByType(MyTask){
// save the next task
Task temp = task.next;
// create the receive
Receive r_task = new ReceiveTask(id,name);
// put the receive after my task
task.next = r_task;
// add the temp as next of the receive
r_task.next = temp;
}
06-13-2013 10:55 AM
06-17-2013 10:40 AM
06-14-2013 02:52 AM
06-25-2013 04:14 AM
06-25-2013 05:24 AM
06-25-2013 09:07 AM
06-25-2013 11:37 AM
07-01-2013 06:13 AM
WARN org.activiti.engine.impl.bpmn.deployer.BpmnDeployer - Error while generating process diagram, image will not be stored in repository) and in case do the new BpmnAutoLayout(model).execute();?<bpmndi:BPMNDiagram> without checking if it matches the actual diagram.07-01-2013 07:36 AM
ServletContextListener that does the init and destroy.activiti.cfg.xml in the src folder:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="processEngineConfiguration"
class="org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration">
<property name="databaseSchemaUpdate" value="true" />
<property name="jobExecutorActivate" value="false" />
<property name="jdbcUrl" value="jdbc:mysql://../activiti" />
<property name="jdbcDriver" value="com.mysql.jdbc.Driver" />
<property name="jdbcUsername" value="root" />
<property name="jdbcPassword" value="psw" />
</bean>
</beans>
SEVERE: Exception sending context destroyed event to listener instance of class org.crowdcomputer.ProcessEngineServletContextListener
java.lang.NoClassDefFoundError: Could not initialize class org.activiti.engine.ProcessEngines
at org.crowdcomputer.ProcessEngineServletContextListener.contextDestroyed(ProcessEngineServletContextListener.java:42)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4927)
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5573)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:680)
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.