Workflow

The XMLResource src/resources/xml/src/java/org/wyona/yanel/impl/resources/XMLResource.java for example has the WorkflowableV1 interface implemented. Also check the YanelServlet for how the workflow interface is used.

WorkflowableV1 interfaces requires that a resource has also the VersionableV2 interface implemented. (NOTE re Yarep: In order to create revisions one must implement Node.checkout() and Node.checkin() when modifying the content of nodes!)

A workflow schema can be associated with a resource by adding a reference within the corresponding resource configuration, for example:

<yanel:property name="workflow-schema" value="/app/workflow/workflow-with-review.xml"/>

whereas if no source scheme is specified, then the workflow schema is located within the default data repository of the corresponding realm.

In order to execute workflow transitions one might has to change the acess control policies according to the usecase/role conditions specified within the workflow schema.