02-27-2012 09:14 AM
2012-02-27 15:13:02,833 ERROR [extensions.webscripts.AbstractRuntime] [http-8080-25] Exception from executeScript - redirecting to status template error: 01270058 Failed to execute script 'workspace:
//SpacesStore/cae15671-e667-449c-a3d8-87d7838d6b96': 01270057 Workflow path activiti$23787 does not exist.
org.alfresco.scripts.ScriptException: 01270058 Failed to execute script 'workspace://SpacesStore/cae15671-e667-449c-a3d8-87d7838d6b96': 01270057 Workflow path activiti$23787 does not exist.
at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:245)
at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:195)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:34)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
02-28-2012 06:42 AM
02-28-2012 10:18 AM
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test">
<process id="DocumentTrigger" name="Document trigger">
<documentation>
</documentation>
<startEvent id="startevent1" name="Start" activiti:formKey="loc:startdocumenttrigger"></startEvent>
<serviceTask id="servicetask1" name="Send document notification" activiti:class="be.test.wsdl.AddDocument"></serviceTask>
<sequenceFlow id="flow1" name="" sourceRef="startevent1" targetRef="servicetask1"></sequenceFlow>
<endEvent id="endevent1" name="End"></endEvent>
<sequenceFlow id="flow2" name="" sourceRef="servicetask1" targetRef="endevent1"></sequenceFlow>
</process>
<bpmndi:BPMNDiagram id="BPMNDiagram_DocumentTrigger">
<bpmndi:BPMNPlane bpmnElement="DocumentTrigger" id="BPMNPlane_DocumentTrigger">
<bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1">
<omgdc:Bounds height="35" width="35" x="130" y="190"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="servicetask1" id="BPMNShape_servicetask1">
<omgdc:Bounds height="55" width="105" x="250" y="180"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
<omgdc:Bounds height="35" width="35" x="420" y="190"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
<omgdi:waypoint x="165" y="207"></omgdi:waypoint>
<omgdi:waypoint x="250" y="207"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
<omgdi:waypoint x="355" y="207"></omgdi:waypoint>
<omgdi:waypoint x="420" y="207"></omgdi:waypoint>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>
package be.test.wsdl;
import java.util.Map;
import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;
import be.test.testservice.TestService;
import be.test.testservice.TestService_Service;
public class AddDocument implements JavaDelegate {
public void execute(DelegateExecution execution) throws Exception {
Map<String, Object> parameters = execution.getVariables();
int testid= 0;
if (parameters.get("loc_TestId") != null)
{
TestId = Integer.parseInt(parameters.get("loc_TestId").toString());
}
TestService_Service service = new TestService_Service();
TestServiceport = service.getTestServiceSOAP();
port.TestEvent(testId, 100);
}
}
03-05-2012 04:33 AM
02-20-2013 08:39 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.