|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.filenet.wcm.toolkit.server.util.workflow.WcmWorkflowGenerator
Helper class for generating workflow definitions from workflow template specifications.
Field Summary | |
static java.lang.String |
ATTACHMENT_NAME
|
static java.lang.String |
FIELD_VOTING
|
static java.lang.String |
MILESTONE
|
static java.util.Map |
WFT_NS
|
static java.lang.String |
WORKFLOW_GROUP
|
Constructor Summary | |
WcmWorkflowGenerator()
|
Method Summary | |
java.lang.String |
checkinWorkflow(filenet.vw.api.VWSession vwSession,
WcmWorkflowTemplate workflowTemplate,
java.lang.String osName,
java.lang.String reservationId,
java.lang.String basePath)
Checkin a VWWorkflowDefinition to the Content Engine. |
static void |
createWorkflow(filenet.vw.api.VWSession vwSession,
WcmWorkflowTemplate workflowTemplate)
Create a VWWorkflowDefinition from a WcmWorkflowTemplate object. |
WcmWorkflowTemplate |
readWorkflow(filenet.vw.api.VWSession vwSession,
java.lang.String osName,
java.lang.String workflowId,
java.lang.String style)
Get the contents of the specified Workflow Definition from the Content Engine an load it into the application object structure. |
java.lang.String |
saveWorkflow(WcmWorkflowTemplate workflowTemplate,
java.lang.String osName,
java.lang.String folderId,
java.lang.String basePath)
Save a VWWorkflowDefinition to the Content Engine. |
void |
setAuthoringDataProvider(WcmAuthoringDataProvider dp)
Set up the Authoring Data Provider. |
void |
setEProcessDataProvider(WcmEProcessDataProvider dp)
Set up the EProcess Data Provider. |
void |
transferWorkflow(com.filenet.wcm.api.Session session,
filenet.vw.api.VWSession vwSession,
java.lang.String osName,
java.lang.String id,
java.lang.String vsId,
WcmWorkflowTemplate workflowTemplate)
Transfer a Workflow Defnition to the Process Engine. |
void |
updateWorkflow(WcmWorkflowTemplate workflowTemplate)
Update the participants of the workflow group specified for each workflow step. |
void |
updateWorkflowFromXML(WcmWorkflowTemplate workflowTemplate,
org.w3c.dom.Document domWorkflowTemplateXML)
Updates the workflow template object with the information passed in the XML. |
void |
writeToFile(WcmWorkflowTemplate workflow,
java.io.File fileWorkflow)
Write a the workflow definition out to a temporary file on the web server. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String ATTACHMENT_NAME
public static final java.lang.String FIELD_VOTING
public static final java.lang.String WORKFLOW_GROUP
public static final java.lang.String MILESTONE
public static java.util.Map WFT_NS
Constructor Detail |
public WcmWorkflowGenerator()
Method Detail |
public void setAuthoringDataProvider(WcmAuthoringDataProvider dp)
dp
- Authoring Data Providerpublic void setEProcessDataProvider(WcmEProcessDataProvider dp)
dp
- EProcess Data Providerpublic static void createWorkflow(filenet.vw.api.VWSession vwSession, WcmWorkflowTemplate workflowTemplate) throws java.lang.Exception
vwSession
- VWSession objectworkflowTemplate
- WcmWorkflowTemplate object that specifies the user defined workflow structure.
java.lang.Exception
- upon validation errors.public java.lang.String saveWorkflow(WcmWorkflowTemplate workflowTemplate, java.lang.String osName, java.lang.String folderId, java.lang.String basePath) throws java.lang.Exception
workflowTemplate
- WcmWorkflowTemplate object that specifies the user defined workflow structure.osName
- String Object Store namefolderId
- String Folder Id of the folder to file the object under.basePath
- String Path to the application directory.
java.lang.Exception
- upon validation errors.public java.lang.String checkinWorkflow(filenet.vw.api.VWSession vwSession, WcmWorkflowTemplate workflowTemplate, java.lang.String osName, java.lang.String reservationId, java.lang.String basePath) throws java.lang.Exception
vwSession
- VWSession objectworkflowTemplate
- WcmWorkflowTemplate object that specifies the user defined workflow structure.osName
- String Object Store namereservationId
- String Reservation object Id of the checked out workflow definition.basePath
- String Path to the application directory.
java.lang.Exception
- upon validation errors.public void updateWorkflow(WcmWorkflowTemplate workflowTemplate) throws java.lang.Exception
workflowTemplate
- WcmWorkflowTemplate object that specifies the user defined workflow structure.
java.lang.Exception
- upon validation errors.public void writeToFile(WcmWorkflowTemplate workflow, java.io.File fileWorkflow) throws java.lang.Exception
workflow
- WcmWorkflowTemplate object that specifies the user defined workflow structure.fileWorkflow
- File to hold the workflow definition pep file.
java.lang.Exception
- upon errors.public void transferWorkflow(com.filenet.wcm.api.Session session, filenet.vw.api.VWSession vwSession, java.lang.String osName, java.lang.String id, java.lang.String vsId, WcmWorkflowTemplate workflowTemplate) throws java.lang.Exception
session
- Session object for Content EnginevwSession
- VWSession object for Process EngineosName
- String Object Store nameid
- String Folder Id of the folder to file the object under.vsId
- String Folder Id of the folder to file the object under.workflowTemplate
- WcmWorkflowTemplate object that specifies the user defined workflow structure.
java.lang.Exception
- upon validation errors.public WcmWorkflowTemplate readWorkflow(filenet.vw.api.VWSession vwSession, java.lang.String osName, java.lang.String workflowId, java.lang.String style) throws java.lang.Exception
vwSession
- VWSession object. Can be se t to null, If null the list of step processors will not be loaded.osName
- String Object Store nameworkflowId
- String Workflow Definition idstyle
- String the workflow definition style (approval, sequencial, designer)
java.lang.Exception
- upon validation errors.public void updateWorkflowFromXML(WcmWorkflowTemplate workflowTemplate, org.w3c.dom.Document domWorkflowTemplateXML) throws java.lang.Exception
workflowTemplate
- WcmWorkflowTemplate object.domWorkflowTemplateXML
- Document holding update information.
java.lang.Exception
- upon validation errors.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |