...
Note |
---|
The procedure outlined here is only required if Syncope 2.0 was configured to use the Activiti user workflow adapter. |
The changes outlined below will allow the new Flowable user workflow adapter to deal with the Activiti workflow definition from Syncope 2.0; more details are available in the Flowable website.
Once set, any update to the workflow definition will be automatically migrated to the new Flowable format.
Additional Maven dependencies
Add to core/pom.xml
the following dependencies:
...
Code Block | ||
---|---|---|
| ||
<dependency> <groupId>org.apache.syncope.core</groupId> <artifactId>syncope-core-workflow-flowable</artifactId> <version>${syncope.version}</version> </dependency> |
Flowable configuration adjustments
In core/src/main/webapp/WEB-INF/web.xml
, replace
Code Block |
---|
classpath*:/workflow*Context.xml |
with
Code Block |
---|
classpath*:/workflowContext.xml
classpath:/workflowFlowableContext.xml |
then download workflowFlowableContext.xml, save it under core/src/main/resources
and add
Code Block | ||
---|---|---|
| ||
<bean id="flowable5CompabilityFactory" class="org.activiti.compatibility.spring.SpringFlowable5CompatibilityHandlerFactory"/> |
right before </beans>
and
Code Block | ||
---|---|---|
| ||
<property name="flowable5CompatibilityEnabled" value="true" />
<property name="flowable5CompatibilityHandlerFactory" ref="flowable5CompabilityFactory"/> |
right after </property>
.
Logging tuning
Add the following to core/src/main/resources/log4j2.xml
:
Code Block | ||
---|---|---|
| ||
<asyncLogger name="org.activiti" additivity="false" level="ERROR">
<appender-ref ref="mainFile"/>
<appender-ref ref="main"/>
</asyncLogger> |
Internal Storage
The steps to upgrade the internal storage to Syncope 2.1.0 are outlined in the Reference Guide.
...