05-05-2014 01:15 PM
IdentityLinkEntity newEntity = new IdentityLinkEntity();
newEntity.setProcessDefId(processDef.getId());
newEntity.setType(OWNER);
newEntity.setUserId(user.getUserId());
newEntity.setId(UUID.randomUUID().toString());
newEntity.insert();
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
<property name="processEngineName" value="processEngine"/>
<property name="dataSource" ref="dataSource1" />
<property name="transactionManager" ref="transactionManager" />
<property name="databaseSchemaUpdate" value="false" />
<property name="jobExecutorActivate" value="false" />
<property name="databaseSchema" value="WORKFLOW_POC1" />
</bean>
Context
.getCommandContext()
.getDbSqlSession()
.insert(this);
05-06-2014 02:04 AM
org.activiti.engine.impl.cmd.AddIdentityLinkForProcessDefinitionCmd05-06-2014 11:26 AM
05-07-2014 02:36 AM
processEngineConfigurationImpl.getCommandExecutor().execute(new Command<Void>() {
@Override
public Void execute(CommandContext commandContext) {
IdentityLinkEntity newEntity = new IdentityLinkEntity();
newEntity.setProcessDefId(pi.getProcessDefinitionId());
newEntity.setType(OWNER);
newEntity.setUserId(user.getUserId());
newEntity.setId(UUID.randomUUID().toString());
newEntity.insert();
return null;
}
});
05-07-2014 09:42 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.