03-21-2014 10:08 AM
<textAnnotation id="versionNumber">
<text>1.10</text>
</textAnnotation>
@Entity
@Table(name = "RF_PROCDEF_VERSION")
public class ProcessDefVersion implements java.io.Serializable, Persistable<String> {
private static final long serialVersionUID = 4348704348958182088L;
@Id
@GeneratedValue
@Column(name = "ID")
private String id;
@Column(name = "PROC_ID")
@Basic
private String processId;
@Column(name = "PROC_KEY")
@Basic
private String processKey;
@Column(name = "PROC_VERSION")
@Basic
private String processVersion;
}
@Repository
@Transactional
public interface ProcessDefRepository extends JpaRepository<ProcessDefVersion, String>, JpaSpecificationExecutor<ProcessDefVersion> {
@Query(value = "select pdv from ProcessDefVersion pdv where pdv.processKey = ?1 order by pdv.processVersion desc")
List<ProcessDefVersion> findByProcessKey(String processKey);
}
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
<property name="dataSource" ref="dataSource" />
<property name="transactionManager" ref="transactionManager" />
<property name="databaseSchemaUpdate" value="true" />
<property name="jobExecutorActivate" value="false" />
<property name="activityBehaviorFactory" ref="customizedActivityBehaviorFactory" />
</bean>
<bean id="customizedActivityBehaviorFactory" class="com.yo.poc.util.CustomizedActivityBehaviorFactory">
</bean>
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
<property name="dataSource" ref="dataSource" />
<property name="transactionManager" ref="transactionManager" />
<property name="databaseSchemaUpdate" value="true" />
<property name="jobExecutorActivate" value="false" />
<property name="activityBehaviorFactory" ref="customizedActivityBehaviorFactory" />
</bean>
<bean id="customizedActivityBehaviorFactory" class="com.yo.poc.util.CustomizedActivityBehaviorFactory">
<property name="callActivityBehaviour" ref="customizedCallActivityBehavior" />
</bean>
<bean id="customizedCallActivityBehavior" class="com.yo.poc.util.CustomizedCallActivityBehavior">
<property name="processDefVersionService" ref="processDefVersionService" />
</bean>
<bean id="processDefVersionService" class="com.yo.poc.service.impl.ProcessDefVersionServiceImpl">
</bean>
03-21-2014 11:54 AM
03-21-2014 12:40 PM
03-26-2014 05:21 PM
04-01-2014 03:12 PM
04-23-2014 11:51 AM
04-24-2014 03:29 AM
04-29-2014 01:48 PM
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.