Trigger a SOAP webservice from .bpmn file in alfresco activiti

cancel
Showing results for 
Search instead for 
Did you mean: 
nickath
Active Member

Trigger a SOAP webservice from .bpmn file in alfresco activiti

Greetings to the community, I have created the simplest possible SOAP service in java and I would like to trigger it inside my .bpmn2 file but I cannot find a step-by-step example to achieve this.
The service is the following class:

public class ServiceImpl implements Service { @Overridepublic String helloWorld(){ return "Hello World";}

and the generated .wsdl file is 

<wsdl:definitions xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://java.nick.org" xmlns:intf="http://java.nick.org" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://java.nick.org"> <!-- WSDL created by Apache Axis version: 1.4 Built on Apr 22, 2006 (06:55:48 PDT) --><wsdl:types><schema xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://java.nick.org"><element name="helloWorld"><complexType/></element><element name="helloWorldResponse"><complexType><sequence><element name="helloWorldReturn" type="xsd:string"/></sequence></complexType></element></schema></wsdl:types><wsdl:message name="helloWorldRequest"><wsdl:part element="impl:helloWorld" name="parameters"> </wsdl:part></wsdl:message><wsdl:message name="helloWorldResponse"><wsdl:part element="impl:helloWorldResponse" name="parameters"> </wsdl:part></wsdl:message><wsdl:portType name="ServiceImpl"><wsdl:operation name="helloWorld"><wsdl:input message="impl:helloWorldRequest" name="helloWorldRequest"> </wsdl:input><wsdl:output message="impl:helloWorldResponse" name="helloWorldResponse"> </wsdl:output></wsdl:operation></wsdl:portType><wsdl:binding name="ServiceImplSoapBinding" type="impl:ServiceImpl"><wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/><wsdl:operation name="helloWorld"><wsdlsoap:operation soapAction=""/><wsdl:input name="helloWorldRequest"><wsdlsoap:body use="literal"/></wsdl:input><wsdl:output name="helloWorldResponse"><wsdlsoap:body use="literal"/></wsdl:output></wsdl:operation></wsdl:binding><wsdl:service name="ServiceImplService"><wsdl:port binding="impl:ServiceImplSoapBinding" name="ServiceImpl"><wsdlsoap:address location="http://localhost:9080/soapExampleHelloWorld/services/ServiceImpl"/></wsdl:port></wsdl:service></wsdl:definitions>

which as you can see i expose to the port 9080 of my localhost. I am looking for a way to trigger this helloWorld function through my .bpmn file when this is deployed.

I am using Alfresco Community Edition 6.0.0 with activiti built-in engine

What I have done so far is inside my .bpmn file I import the the .wsdl file as shown below:

<import importType="http://schemas.xmlsoap.org/wsdl/" location="http://localhost:9080/soapExampleHelloWorld/services/ServiceImpl?wsdl" namespace="http://webservice.activiti.org"/> 

I am following this tutorial https://www.activiti.org/userguide/#bpmnWebserviceTask and I know that I somehow have to use the serviceTask but

I cannot clarify which steps should I follow next to trigger this function (f.e send a SOAP request like the below one

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:q0="http://java.nick.org" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <q0:helloWorld/> </soapenv:Body></soapenv:Envelope>

and get the response.

Thanks in advance for any help Smiley Happy

2 Replies
paul_roth
Established Member

Re: Trigger a SOAP webservice from .bpmn file in alfresco activiti

Hi Nick Ath‌, this example is not exactly what you are looking for but Ciju has a nice example of doing some SOAP integration from which you may find some useful examples.  The example can be found here.

nickath
Active Member

Re: Trigger a SOAP webservice from .bpmn file in alfresco activiti

Paul Roth , thanks for your very fast reply Smiley Happy . I found a very explanatory example on how to call a SOAP web service through a .bpmn file in a book called "Activiti in action" - Chapter 11 (Chapter 11. Integrating services with a BPMN 2.0 process - Activiti in Action: Executable business p... ). 

Now, I managed to proceed with my .bpmn2 file and currently has the below structure.

<?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"
xmlns:impl="http://java.nick.org"
xmlns:apachesoap="http://xml.apache.org/xml-soap" targetNamespace="http://java.nick.org">


<!-- import web service -->
<import importType="http://schemas.xmlsoap.org/wsdl/"
location="http://localhost:9080/soapExampleHelloWorld/services/ServiceImpl?wsdl"
namespace="http://webservice.activiti.org"/>

<!-- define request message -->
<message id="helloWorldRequestMessage"
itemRef="impl:helloWorldRequestItem"/>
<message id="helloWorldResponseMessage"
itemRef="impl:helloWorldResponseItem"/>


<!-- references wsdl input message -->
<itemDefinition id="helloWorldRequestItem"
structureRef="impl:helloWorld" />
<itemDefinition id="helloWorldResponseItem"
structureRef="impl:helloWorldResponse" />

<!-- references WSDL port type -->
<interface name="Hello Name"
implementationRef="impl:ServiceImpl">
<operation id="helloWorldOperation"
name="Hello name"
implementationRef="impl:helloWorld">
<inMessageRef>
impl:helloWorldRequestMessage
</inMessageRef>
<outMessageRef>
impl:helloWorldResponseMessage
</outMessageRef>
</operation>
</interface>

<!-- input element as defined in .wsdl -->
<itemDefinition id="name"
structureRef="string" />
<itemDefinition id="helloWorldResponse"
structureRef="string" />



<process isExecutable="true" id="task9" name="Service Task Example">
<startEvent id="startEvent" name="Start" />
<sequenceFlow sourceRef="startEvent"
targetRef="webService" />

<serviceTask id="webService"
name="Hello name"
implementation="##WebService"
operationRef="impl:helloWorldOperation">

<ioSpecification>

<dataInput
itemSubjectRef="impl:helloWorldRequestItem"
id="dataInput" />

<dataOutput
itemSubjectRef="impl:helloWorldResponseItem"
id="dataOutput" />

<inputSet>
<dataInputRefs> dataInput </dataInputRefs>
</inputSet>

<outputSet>
<dataOutputRefs> dataOutput </dataOutputRefs>
</outputSet>

</ioSpecification>

<dataInputAssociation>
<sourceRef>name</sourceRef>
<targetRef>name</targetRef>
</dataInputAssociation>
<dataOutputAssociation>
<sourceRef>name</sourceRef>
<targetRef>name</targetRef>
</dataOutputAssociation>

</serviceTask>

<sequenceFlow sourceRef="webService"
targetRef="waitState" />
<receiveTask id = "waitState" />
<sequenceFlow sourceRef="waitState"
targetRef="endEvent" />
<endEvent id="endEvent" name="End"/>

</process>



</definitions>

and my .wsdl file is like below:

<?xml version="1.0" encoding="ISO-8859-1"?>
<wsdl:definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:intf="http://java.nick.org" xmlns:impl="http://java.nick.org" xmlns:apachesoap="http://xml.apache.org/xml-soap" targetNamespace="http://java.nick.org">
<!--WSDL created by Apache Axis version: 1.4 Built on Apr 22, 2006 (06:55:48 PDT)-->
<wsdl:types>
<schema targetNamespace="http://java.nick.org" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<element name="helloWorld">
<complexType>
<sequence>
<element name="name" type="xsd:string"/>
</sequence>
</complexType>
</element>
<element name="helloWorldResponse">
<complexType>
<sequence>
<element name="helloWorldReturn" type="xsd:string"/>
</sequence>
</complexType>
</element>
</schema>
</wsdl:types>
<wsdl:message name="helloWorldRequest">
<wsdl:part name="parameters" element="impl:helloWorld"> </wsdl:part>
</wsdl:message>
<wsdl:message name="helloWorldResponse">
<wsdl:part name="parameters" element="impl:helloWorldResponse"> </wsdl:part>
</wsdl:message>
<wsdl:portType name="ServiceImpl">
<wsdl:operation name="helloWorld">
<wsdl:input name="helloWorldRequest" message="impl:helloWorldRequest"> </wsdl:input>
<wsdl:output name="helloWorldResponse" message="impl:helloWorldResponse"> </wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="ServiceImplSoapBinding" type="impl:ServiceImpl">
<wsdlsoap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<wsdl:operation name="helloWorld">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="helloWorldRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="helloWorldResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="ServiceImplService">
<wsdl:port name="ServiceImpl" binding="impl:ServiceImplSoapBinding">
<wsdlsoap:address location="http://localhost:9080/soapExampleHelloWorld/services/ServiceImpl"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

I changed my service from:


@Override
public String helloWorld() {
System.out.println("Hello " +name);
return "Hello world";
}

to:


@Override
public String helloWorld(String name) {
System.out.println("Hello " +name);
return "Hello " +name;
}

I successfully managed to deploy my .bpmn2 file in the alfresco workflow console but when I try to start it I got the following exception:

java.lang.NullPointerException      at org.activiti.engine.impl.bpmn.data.ItemDefinition.createInstance(ItemDefinition.java:44)      at org.activiti.engine.impl.bpmn.data.IOSpecification.initialize(IOSpecification.java:46)      at org.activiti.engine.impl.bpmn.behavior.WebServiceActivityBehavior.execute(WebServiceActivityBehavior.java:70)      at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:60)      at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:650)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:643)      at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerStart.java:52)      at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)      at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:650)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:643)      at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)      at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:650)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:643)      at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionCreateScope.execute(AtomicOperationTransitionCreateScope.java:49)      at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:650)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:643)      at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerTake.execute(AtomicOperationTransitionNotifyListenerTake.java:80)      at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:650)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:643)      at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionDestroyScope.execute(AtomicOperationTransitionDestroyScope.java:116)      at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:650)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:643)      at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerEnd.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerEnd.java:35)      at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)      at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:650)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:643)      at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)      at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:650)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:643)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:460)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:438)      at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performOutgoingBehavior(BpmnActivityBehavior.java:140)      at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performDefaultOutgoingBehavior(BpmnActivityBehavior.java:66)      at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.leave(FlowNodeActivityBehavior.java:44)      at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.execute(FlowNodeActivityBehavior.java:36)      at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:60)      at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:650)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:643)      at org.activiti.engine.impl.pvm.runtime.AtomicOperationProcessStartInitial.eventNotificationsCompleted(AtomicOperationProcessStartInitial.java:45)      at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)      at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:650)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:643)      at org.activiti.engine.impl.pvm.runtime.AtomicOperationProcessStart.eventNotificationsCompleted(AtomicOperationProcessStart.java:64)      at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)      at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:650)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:643)      at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)      at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:650)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:643)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.start(ExecutionEntity.java:388)      at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:110)      at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:37)      at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24)      at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57)      at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:47)      at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131)      at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:45)      at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)      at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40)      at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35)      at org.activiti.engine.impl.RuntimeServiceImpl.startProcessInstanceById(RuntimeServiceImpl.java:114)      at org.alfresco.repo.workflow.activiti.ActivitiWorkflowEngine.startWorkflow(ActivitiWorkflowEngine.java:1101)      at org.alfresco.repo.workflow.WorkflowServiceImpl.startWorkflow(WorkflowServiceImpl.java:430)      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)      at java.lang.reflect.Method.invoke(Method.java:498)      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)      at org.alfresco.service.cmr.workflow.WorkflowPermissionInterceptor.invoke(WorkflowPermissionInterceptor.java:64)      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)      at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:53)      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)      at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:166)      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)      at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)      at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)      at com.sun.proxy.$Proxy71.startWorkflow(Unknown Source)      at org.alfresco.repo.workflow.WorkflowInterpreter.executeCommand(WorkflowInterpreter.java:885)      at org.alfresco.repo.admin.BaseInterpreter$1$1.execute(BaseInterpreter.java:162)      at org.alfresco.repo.admin.BaseInterpreter$1$1.execute(BaseInterpreter.java:1)      at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:464)      at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:333)      at org.alfresco.repo.admin.BaseInterpreter$1.doWork(BaseInterpreter.java:165)      at org.alfresco.repo.admin.BaseInterpreter$1.doWork(BaseInterpreter.java:1)      at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:555)      at org.alfresco.repo.admin.BaseInterpreter.interpretCommand(BaseInterpreter.java:154)      at org.alfresco.repo.web.scripts.admin.DynamicInterpreterExtension.interpretCommand(DynamicInterpreterExtension.java:111)      at org.alfresco.repo.web.scripts.admin.DynamicInterpreterExtension.executeCmd(DynamicInterpreterExtension.java:74)      at sun.reflect.GeneratedMethodAccessor850.invoke(Unknown Source)      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)      at java.lang.reflect.Method.invoke(Method.java:498)      at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)      at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)      at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)      at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_admin_consoles_admin_workflowconsole_post_js_3._c_main_8(classpath*:alfresco/templates/webscripts/org/alfresco/repository/admin/consoles/admin-workflowconsole.post.js:191)      at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_admin_consoles_admin_workflowconsole_post_js_3.call(classpath*:alfresco/templates/webscripts/org/alfresco/repository/admin/consoles/admin-workflowconsole.post.js)      at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:74)      at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_admin_consoles_admin_workflowconsole_post_js_3._c_script_0(classpath*:alfresco/templates/webscripts/org/alfresco/repository/admin/consoles/admin-workflowconsole.post.js:199)      at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_admin_consoles_admin_workflowconsole_post_js_3.call(classpath*:alfresco/templates/webscripts/org/alfresco/repository/admin/consoles/admin-workflowconsole.post.js)      at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)      at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)      at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_admin_consoles_admin_workflowconsole_post_js_3.call(classpath*:alfresco/templates/webscripts/org/alfresco/repository/admin/consoles/admin-workflowconsole.post.js)      at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_admin_consoles_admin_workflowconsole_post_js_3.exec(classpath*:alfresco/templates/webscripts/org/alfresco/repository/admin/consoles/admin-workflowconsole.post.js)      at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:509)      at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:207)      at org.alfresco.repo.processor.ScriptServiceImpl.execute(ScriptServiceImpl.java:219)      at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:181)      at org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:109)      at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1376)      at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)      at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:519)      at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:464)      at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:587)      at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:656)      at org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:428)      at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:308)      at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:399)      at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:210)      at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)      at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)      at org.springframework.extensions.webscripts.servlet.CSRFFilter.doFilter(CSRFFilter.java:315)      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)      at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:68)      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:1025)      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1137)      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)      at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2555)      at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2544)      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)      at java.lang.Thread.run(Thread.java:745)


Any ideas why is this happening??