AnsweredAssumed Answered

Calling spring bean from alfresco activiti process

Question asked by younis15 on Oct 26, 2011
Latest reply on Jan 12, 2012 by amandaluniz_z
Within alfresco activiti, could I call a spring bean using the servicetask like :

<serviceTask id="assignApplicationId" name="Assign Application Id"
  activiti:expression="${sequenceUtil.getOutboundId(task.id)}"
  activiti:resultVariable="OutboundWF_ApplicationNumber"/>
however, in my custom context I declared the
sequenceUtil
as the following:
<bean id="sequenceUtil" name="sequenceUtil" class="com.tts.mersal.presentation.bean.dialog.util.SequenceUtil">
    <property name="searchService">
        <ref bean="searchService" />
    </property>
    <property name="nodeService">
        <ref bean="nodeService" />
    </property>
    <property name="workflowService">
        <ref bean="WorkflowService" />
    </property>    
</bean>
Actually I got the following exception
org.activiti.engine.impl.javax.el.PropertyNotFoundException: Cannot resolve identifier 'sequenceUtil'
at org.activiti.engine.impl.juel.AstIdentifier.eval(AstIdentifier.java:83)
at org.activiti.engine.impl.juel.AstMethod.invoke(AstMethod.java:79)
at org.activiti.engine.impl.juel.AstMethod.eval(AstMethod.java:75)
at org.activiti.engine.impl.juel.AstEval.eval(AstEval.java:50)
at org.activiti.engine.impl.juel.AstNode.getValue(AstNode.java:26)
at org.activiti.engine.impl.juel.TreeValueExpression.getValue(TreeValueExpression.java:114)
at org.activiti.engine.impl.el.JuelExpression.getValue(JuelExpression.java:46)

Outcomes