We are integrating Liferay with Activiti Workflow along with Drools. We would like to pass the Liferay workflow context to the service task in Activiti workflow. Can anyone tell me the best way to do this.
We tried defining a script task
<scriptTask id="scriptTask" scriptFormat="LiferayJavaScript">
<script>
def var person = (Long) workflowContext.getSomething("aaa");
</script>
</scriptTask>
Now the issue is this person object is not accessible outside in other workflow script tasks. How to access the person object.
If we define other scriptTasks with scriptFormat as "javascript" then it gives various errors or classnotfound or such related exceptions.
We tried defining a script task
<scriptTask id="scriptTask" scriptFormat="LiferayJavaScript">
<script>
def var person = (Long) workflowContext.getSomething("aaa");
</script>
</scriptTask>
Now the issue is this person object is not accessible outside in other workflow script tasks. How to access the person object.
If we define other scriptTasks with scriptFormat as "javascript" then it gives various errors or classnotfound or such related exceptions.
but if we wish to pass workflowcontext outside to other scriptTasks(non-LiferayJavaScript) in the same workflow then it either gives us classnotfound or other related exceptions. I think the crux of the issue is the main integration between liferay and activiti in this region needs some work.
LiferayJavaScript scriptTask does not understand the "execution" variable that is commonly uses in activiti workflows. This points to the gaping hole in the integration between these 2 frameworks…
We are facing serious issues in integrating liferay with Activiti and drools. Any help on this wud be appreciated. The simple workflow example that is available in the emforge liferay-activiti page is too simple to be used in real life.
Any example involving liferay, activiti and drools rule engine would have been wonderful.