01-31-2013 06:39 PM
01-31-2013 09:44 PM
@Component("my.workflow.beans.WorkflowTestJavaTask") //make application context scan this package using <context:component-scan../>
public class WorkflowTestJavaTask implements JavaDelegate
{
@Autowired
@Qualifier("myOtherSpringBean")
private MyOtherSpringBean otherSpringBean;
@Override
public void execute(DelegateExecution execution) throws Exception
{…..<serviceTask id="servicetask1" name="Service Task" activiti:expression="#{my.workflow.beans.WorkflowTestJavaTask.execute(execution)}"></serviceTask>..
02-01-2013 03:08 AM
How can I access other Spring beans contained in the same application from within a Java Service Task
02-01-2013 12:53 PM
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration" depends-on="bidness">
<property name="dataSource" ref="activitiDS" />
<property name="transactionManager" ref="transactionManager" />
<property name="databaseSchemaUpdate" value="true" />
<property name="jobExecutorActivate" value="true" />
</bean>
<bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean" depends-on="processEngineConfiguration">
<property name="processEngineConfiguration" ref="processEngineConfiguration" />
</bean>
<bean id="repositoryService" factory-bean="processEngine" factory-method="getRepositoryService" />
<bean id="runtimeService" factory-bean="processEngine" factory-method="getRuntimeService" />
<bean id="taskService" factory-bean="processEngine" factory-method="getTaskService" />
<bean id="historyService" factory-bean="processEngine" factory-method="getHistoryService" />
<bean id="managementService" factory-bean="processEngine" factory-method="getManagementService" />
<bean id="registerWorkflows" class="my.business.startup.RegisterWorkflows"
depends-on="repositoryService,runtimeService,taskService,historyService,managementService"/>
02-04-2013 02:13 AM
02-11-2015 01:23 PM
02-18-2015 10:37 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.