Difference between revisions of "API:EPrints/Workflow"

From EPrints Documentation
Jump to: navigation, search
Line 1: Line 1:
 
<!-- Pod2Wiki=_preamble_  
 
<!-- Pod2Wiki=_preamble_  
 
This page has been automatically generated from the EPrints 3.2 source. Any wiki changes made between the 'Pod2Wiki=*' and 'Edit below this comment' comments will be lost.
 
This page has been automatically generated from the EPrints 3.2 source. Any wiki changes made between the 'Pod2Wiki=*' and 'Edit below this comment' comments will be lost.
  -->{{API}}{{Pod2Wiki}}{{API:Source|file=EPrints/Workflow.pm|package_name=EPrints::Workflow}}[[Category:API|WORKFLOW]][[Category:API:EPrints/Workflow|WORKFLOW]]<div><!-- Edit below this comment -->
+
  -->{{API}}{{Pod2Wiki}}{{API:Source|file=perl_lib/EPrints/Workflow.pm|package_name=EPrints::Workflow}}[[Category:API|WORKFLOW]][[Category:API:EPrints/Workflow|WORKFLOW]]<div><!-- Edit below this comment -->
  
  

Revision as of 15:26, 16 December 2011

EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects


API: Core API

Latest Source Code (3.4, 3.3) | Revision Log | Before editing this page please read Pod2Wiki


NAME

EPrints::Workflow - Models the submission process used by an repository.

User Comments


DESCRIPTION

The workflow class handles loading the workflow configuration for a single repository.

User Comments


WORKFLOW FORMAT

User Comments


component

Parents: stage

Children: field

Attributes: type

 <component type="Field::Multi">
   <field ref="title" />
   <field ref="abstract" />
 </component>
 

User Comments


field

Parents: component

Children: sub_field

Attributes: ref

 <field ref="title" input_cols="40" />
 

field includes a metafield in the workflow. Any property can be set for the field by supplying it as an attribute.

User Comments


flow

Parents: workflow

Children: stage

 <flow>
   <stage ref="files" />
   <stage ref="details" />
 </flow>
 

User Comments


stage

Parents: workflow, flow

Children: component

Attributes: ref, name

 <stage name="details">
   <component><field ref="title"/></component>
 </stage>
 

User Comments


sub_field

Parents: field

sub_field allows properties to be set for sub-fields of EPrints::MetaField::Compound and sub-classed field types.

See field for possible attributes.

User Comments


workflow

Children: flow, stage

 <workflow xmlns="http://eprints.org/ep3/workflow">
   <flow>
     ...
   </flow>
   <stage name="files">
     ...
   </stage>
   <stage name="details">
     ...
   </stage>
 </workflow>
 

User Comments


METHODS

User Comments


new

$language = EPrints::Workflow->new( $session, $workflow_id, %params )

Create a new workflow object representing the specification given in the workflow.xml configuration

  1. needs more config - about object etc.

User Comments


add_workflow_flow

$repository->add_workflow_flow( $workflowid, $id, $types, $stages )

Add a flow to the workflow which is applicable for the types in types and contains the stages in stages.

The $id is used to remove everything relating to this is from the workflow.

User Comments


COPYRIGHT

User Comments