William Timpany [https://community.jboss.org/people/wtimpany] created the discussion
"Re: Persist Entity from within ScriptTask - best practice?" To view the discussion, visit: https://community.jboss.org/message/647898#647898 -------------------------------------------------------------- Thanks for theadvice, using the Service Task was easier than I expected. Following the instructions in the example worked. Just a little bit of extra config was required to get the "Service Task" added to the "KnowledgeSession" in "Spring". e.g. Spring Config < bean id=++"jboss.jbpm.serviceTaskHandler"++ class=++"org.jbpm.bpmn2.handler.ServiceTaskHandler"++ /> < bean id=++"jboss.jbpm.knowledgeSession1.workItemManager"++ factory-bean=++"jboss.jbpm.knowledgeSession1"++ factory-method=++"getWorkItemManager"++/> < bean class=++"org.springframework.beans.factory.config.MethodInvokingFactoryBean"++> <property name=++"targetObject"++ ref=++"jboss.jbpm.knowledgeSession1.workItemManager"++/> <property name=++"targetMethod"++ value=++"registerWorkItemHandler"++/> <property name=++"arguments"++> <list> <value>Service Task</value> <ref bean=++"jboss.jbpm.serviceTaskHandler"++/> </list> </property> </bean> -------------------------------------------------------------- Reply to this message by going to Community [https://community.jboss.org/message/647898#647898] Start a new discussion in jBPM at Community [https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
_______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user