Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Currently, the whole workflow process is managed by the WorkflowManager XmlWorkflowManager as was the case for the previous version of the workflow. The workflow manager is responsible for executing the different actions, processing their outcome and activating new ones. The WorkflowManager is being called from the user interface in order to process an action submitted by a user. In case another action follows the one executed by the user, the WorkflowManager will return this action and the user interface will show the new action page.
For the DSpace XMLUI, the submission.js flowscript file is responsible for interacting with the WorkflowManager and will show the user the correct page after submitting an action.

...

Each user selection action that is used in the workflow config refers to a bean definition in this workflow-actions.xml configuration. In order to create a new user selection action bean, the following XML code is used:

Code Block
 <bean id="{action.api.id.2}" class="org.dspace.workflow.actions.UserSelectionActionConfig" scope="prototype">
     <constructor-arg type="java.lang.String" value="{action.api.id.2}"/>

     <property name="processingAction" ref="{user.selection.bean.id}"/>
     <property name="requiresUI" value="{true/false}"/>
 </bean>

...