04-08-2011 04:01 AM
04-13-2011 03:23 AM
04-13-2011 07:49 AM
04-14-2011 03:50 AM
Implement a method like signal(String instanceID, Object signalData) in RuntimeServiceImpl
Implement a TaskActivityBehavior similar to ReceiveTaskActivityBehavior
Implement parsing for my new activity (did not look at parsing in detail so far)
04-17-2011 06:16 AM
Logger.info(">>>>>>>>>>>>>>>>>>>>>>>>>>>>> signal");
receiver.destroy();
leave(execution);
SCHWERWIEGEND: Error while closing command context
org.activiti.engine.ActivitiException: this activity doesn't accept signals
at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.signal(FlowNodeActivityBehavior.java:53)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.signal(ExecutionEntity.java:309)
at org.activiti.engine.impl.cmd.SignalCmd.execute(SignalCmd.java:50)
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.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
at org.activiti.engine.impl.RuntimeServiceImpl.signal(RuntimeServiceImpl.java:135)
at de.uni_stuttgart.informatik.eventum.activiti.activities.JMSReceiver.onMessage(JMSReceiver.java:92)
at com.sun.messaging.jmq.jmsclient.MessageConsumerImpl.deliverAndAcknowledge(MessageConsumerImpl.java:358)
at com.sun.messaging.jmq.jmsclient.MessageConsumerImpl.onMessage(MessageConsumerImpl.java:287)
at com.sun.messaging.jmq.jmsclient.SessionReader.deliver(SessionReader.java:119)
at com.sun.messaging.jmq.jmsclient.ConsumerReader.run(ConsumerReader.java:192)
at java.lang.Thread.run(Thread.java:619)
org.activiti.engine.ActivitiException: this activity doesn't accept signals
at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.signal(FlowNodeActivityBehavior.java:53)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.signal(ExecutionEntity.java:309)
at org.activiti.engine.impl.cmd.SignalCmd.execute(SignalCmd.java:50)
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.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
at org.activiti.engine.impl.RuntimeServiceImpl.signal(RuntimeServiceImpl.java:135)
at de.uni_stuttgart.informatik.eventum.activiti.activities.JMSReceiver.onMessage(JMSReceiver.java:92)
at com.sun.messaging.jmq.jmsclient.MessageConsumerImpl.deliverAndAcknowledge(MessageConsumerImpl.java:358)
at com.sun.messaging.jmq.jmsclient.MessageConsumerImpl.onMessage(MessageConsumerImpl.java:287)
at com.sun.messaging.jmq.jmsclient.SessionReader.deliver(SessionReader.java:119)
at com.sun.messaging.jmq.jmsclient.ConsumerReader.run(ConsumerReader.java:192)
at java.lang.Thread.run(Thread.java:619)
04-18-2011 03:23 AM
04-18-2011 05:45 AM
@Override
public void signal(ActivityExecution execution, String signalName, Object signalData) throws Exception {
System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>> signal");
receiver.destroy();
leave(execution);
}
04-18-2011 11:17 AM
SignallableActivityBehavior activityBehavior = (SignallableActivityBehavior) activity.getActivityBehavior();
@Override
public void signal(ActivityExecution execution, String signalName, Object signalData) throws Exception {
if (activityBehaviorInstance == null) {
activityBehaviorInstance = getActivityBehaviorInstance(execution);
}
((SignallableActivityBehavior)activityBehaviorInstance).signal(execution, signalName, signalData);
}
04-19-2011 06:27 AM
// Signallable activity behavior
public void signal(ActivityExecution execution, String signalName, Object signalData) throws Exception {
if (activityBehaviorInstance == null) {
activityBehaviorInstance = getActivityBehaviorInstance(execution);
}
if (activityBehaviorInstance instanceof SignallableActivityBehavior) {
((SignallableActivityBehavior) activityBehaviorInstance).signal(execution, signalName, signalData);
} else {
throw new ActivitiException("signal() can only be called on a " + SignallableActivityBehavior.class.getName() + " instance");
}
}
04-20-2011 08:19 AM
public void signal(String activityInstanceId, Object o){
commandExecutor.execute(new SignalCmd(activityInstanceId, null, o));
}
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.