wt.workflow.definer
Class WfExportImportHandler
java.lang.Object
wt.workflow.definer.WfExportImportHandler
- public final class WfExportImportHandler
- extends Object
Handle the Import and Export of a Wf Process Template.
Supported API: false
Extendable: false
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EXPORT_HEADER
private static final String EXPORT_HEADER
- See Also:
- Constant Field Values
EXPORT_HEADER_USER
private static final String EXPORT_HEADER_USER
- See Also:
- Constant Field Values
EXPORT_HEADER_TIMESTAMP
private static final String EXPORT_HEADER_TIMESTAMP
- See Also:
- Constant Field Values
WFPROCESS_TEMPLATE_BEGIN
private static final String WFPROCESS_TEMPLATE_BEGIN
- See Also:
- Constant Field Values
WFPROCESS_TEMPLATE_END
private static final String WFPROCESS_TEMPLATE_END
- See Also:
- Constant Field Values
WFASSIGNED_ACTIVITY_TEMPLATE_BEGIN
private static final String WFASSIGNED_ACTIVITY_TEMPLATE_BEGIN
- See Also:
- Constant Field Values
WFASSIGNED_ACTIVITY_TEMPLATE_END
private static final String WFASSIGNED_ACTIVITY_TEMPLATE_END
- See Also:
- Constant Field Values
WFADHOC_ACTIVITY_TEMPLATE_BEGIN
private static final String WFADHOC_ACTIVITY_TEMPLATE_BEGIN
- See Also:
- Constant Field Values
WFADHOC_ACTIVITY_TEMPLATE_END
private static final String WFADHOC_ACTIVITY_TEMPLATE_END
- See Also:
- Constant Field Values
WFPROXY_TEMPLATE_BEGIN
private static final String WFPROXY_TEMPLATE_BEGIN
- See Also:
- Constant Field Values
WFPROXY_TEMPLATE_END
private static final String WFPROXY_TEMPLATE_END
- See Also:
- Constant Field Values
WFBLOCK_TEMPLATE_BEGIN
private static final String WFBLOCK_TEMPLATE_BEGIN
- See Also:
- Constant Field Values
WFBLOCK_TEMPLATE_END
private static final String WFBLOCK_TEMPLATE_END
- See Also:
- Constant Field Values
WFEXTERNAL_METHOD_TEMPLATE_BEGIN
private static final String WFEXTERNAL_METHOD_TEMPLATE_BEGIN
- See Also:
- Constant Field Values
WFEXTERNAL_METHOD_TEMPLATE_END
private static final String WFEXTERNAL_METHOD_TEMPLATE_END
- See Also:
- Constant Field Values
WFINTERNAL_METHOD_TEMPLATE_BEGIN
private static final String WFINTERNAL_METHOD_TEMPLATE_BEGIN
- See Also:
- Constant Field Values
WFINTERNAL_METHOD_TEMPLATE_END
private static final String WFINTERNAL_METHOD_TEMPLATE_END
- See Also:
- Constant Field Values
WFAPPL_ROBOT_TEMPLATE_BEGIN
private static final String WFAPPL_ROBOT_TEMPLATE_BEGIN
- See Also:
- Constant Field Values
WFAPPL_ROBOT_TEMPLATE_END
private static final String WFAPPL_ROBOT_TEMPLATE_END
- See Also:
- Constant Field Values
WFEXPR_ROBOT_TEMPLATE_BEGIN
private static final String WFEXPR_ROBOT_TEMPLATE_BEGIN
- See Also:
- Constant Field Values
WFEXPR_ROBOT_TEMPLATE_END
private static final String WFEXPR_ROBOT_TEMPLATE_END
- See Also:
- Constant Field Values
WFTIMER_TEMPLATE_BEGIN
private static final String WFTIMER_TEMPLATE_BEGIN
- See Also:
- Constant Field Values
WFTIMER_TEMPLATE_END
private static final String WFTIMER_TEMPLATE_END
- See Also:
- Constant Field Values
WFSYNCH_TEMPLATE_BEGIN
private static final String WFSYNCH_TEMPLATE_BEGIN
- See Also:
- Constant Field Values
WFSYNCH_TEMPLATE_END
private static final String WFSYNCH_TEMPLATE_END
- See Also:
- Constant Field Values
WFURL_ROBOT_TEMPLATE_BEGIN
private static final String WFURL_ROBOT_TEMPLATE_BEGIN
- See Also:
- Constant Field Values
WFURL_ROBOT_TEMPLATE_END
private static final String WFURL_ROBOT_TEMPLATE_END
- See Also:
- Constant Field Values
WFCONNECTOR_TEMPLATE
private static final String WFCONNECTOR_TEMPLATE
- See Also:
- Constant Field Values
WFNODE_TEMPLATE_LINK_BEGIN
private static final String WFNODE_TEMPLATE_LINK_BEGIN
- See Also:
- Constant Field Values
WFNODE_TEMPLATE_LINK_END
private static final String WFNODE_TEMPLATE_LINK_END
- See Also:
- Constant Field Values
WFEVENT_ACTION_PAIR
private static final String WFEVENT_ACTION_PAIR
- See Also:
- Constant Field Values
WFPRINCIPAL_ASSIGNEE
private static final String WFPRINCIPAL_ASSIGNEE
- See Also:
- Constant Field Values
WFROLE_ASSIGNEE
private static final String WFROLE_ASSIGNEE
- See Also:
- Constant Field Values
WFACTOR_ASSIGNEE
private static final String WFACTOR_ASSIGNEE
- See Also:
- Constant Field Values
WFTEAM_ASSIGNEE
private static final String WFTEAM_ASSIGNEE
- See Also:
- Constant Field Values
WFVARIABLE_ASSIGNEE
private static final String WFVARIABLE_ASSIGNEE
- See Also:
- Constant Field Values
WFOVERDUE_NOTIFICATION_ROLE_ASSIGNEE
private static final String WFOVERDUE_NOTIFICATION_ROLE_ASSIGNEE
- See Also:
- Constant Field Values
WFVARIABLE
private static final String WFVARIABLE
- See Also:
- Constant Field Values
WFTRANSITION
private static final String WFTRANSITION
- See Also:
- Constant Field Values
WFEXPRESSION
private static final String WFEXPRESSION
- See Also:
- Constant Field Values
WFOVERDUE_ACTION
private static final String WFOVERDUE_ACTION
- See Also:
- Constant Field Values
WFEXCEPTION_ACTION
private static final String WFEXCEPTION_ACTION
- See Also:
- Constant Field Values
WFSIGNATURE
private static final String WFSIGNATURE
- See Also:
- Constant Field Values
WFARGUMENT
private static final String WFARGUMENT
- See Also:
- Constant Field Values
WFENVIRONMENT
private static final String WFENVIRONMENT
- See Also:
- Constant Field Values
WFNOTIFICATION_BEGIN
private static final String WFNOTIFICATION_BEGIN
- See Also:
- Constant Field Values
WFNOTIFICATION_END
private static final String WFNOTIFICATION_END
- See Also:
- Constant Field Values
NEW_LINE
private static final String NEW_LINE
COMMA_DELIMITER
private static final String COMMA_DELIMITER
- See Also:
- Constant Field Values
LIST_DELIMITER
private static final String LIST_DELIMITER
- See Also:
- Constant Field Values
EXPORT_IMPORT_DIRECTORY
private static final String EXPORT_IMPORT_DIRECTORY
WT_HOME
private static final String WT_HOME
CONTAINER
private static final String CONTAINER
- See Also:
- Constant Field Values
CSV_SUFFIX
private static final String CSV_SUFFIX
- See Also:
- Constant Field Values
RESOURCE
private static final String RESOURCE
- See Also:
- Constant Field Values
VERBOSE
private static final boolean VERBOSE
SERVICE_NAME
private static final String SERVICE_NAME
- See Also:
- Constant Field Values
WfExportImportHandler
public WfExportImportHandler()
findExportImportFileNames
protected static Vector findExportImportFileNames()
throws WTException
- Throws:
WTException
exportTemplates
protected static void exportTemplates(Vector wfProcessTemplateVector,
String fileName,
boolean appendFlag)
throws WTException
- Throws:
WTException
importTemplates
protected static void importTemplates(String fileName)
throws WTException
- Throws:
WTException
processContainerTemplate
private static String processContainerTemplate(WfContainerTemplate template)
throws WTException
- Throws:
WTException
processStepTemplate
private static String processStepTemplate(WfNodeTemplate template)
throws WTException
- Throws:
WTException
processConnectorTemplate
private static String processConnectorTemplate(WfNodeTemplate template)
throws WTException
- Throws:
WTException
processLinkTemplate
private static String processLinkTemplate(NodeTemplateLink template)
throws WTException
- Throws:
WTException
stringWfProcessTemplate
private static String stringWfProcessTemplate(WfProcessTemplate template)
throws WTException
- Throws:
WTException
stringWfAdHocActivityTemplate
private static String stringWfAdHocActivityTemplate(WfAdHocActivityTemplate template)
throws WTException
- Throws:
WTException
stringWfAssignedActivityTemplate
private static String stringWfAssignedActivityTemplate(WfAssignedActivityTemplate template)
throws WTException
- Throws:
WTException
stringWfBlockTemplate
private static String stringWfBlockTemplate(WfBlockTemplate template)
throws WTException
- Throws:
WTException
stringWfProxyTemplate
private static String stringWfProxyTemplate(WfProxyTemplate template)
throws WTException
- Throws:
WTException
stringWfApplRobotTemplate
private static String stringWfApplRobotTemplate(WfApplRobotTemplate template)
throws WTException
- Throws:
WTException
stringWfExprRobotTemplate
private static String stringWfExprRobotTemplate(WfExprRobotTemplate template)
throws WTException
- Throws:
WTException
stringWfTimerTemplate
private static String stringWfTimerTemplate(WfTimerTemplate template)
throws WTException
- Throws:
WTException
stringWfSynchRobotTemplate
private static String stringWfSynchRobotTemplate(WfSynchRobotTemplate template)
throws WTException
- Throws:
WTException
stringWfURLRobotTemplate
private static String stringWfURLRobotTemplate(WfURLRobotTemplate template)
throws WTException
- Throws:
WTException
stringWfExternalMethodTemplate
private static String stringWfExternalMethodTemplate(WfExternalMethodTemplate template)
throws WTException
- Throws:
WTException
stringWfInternalMethodTemplate
private static String stringWfInternalMethodTemplate(WfInternalMethodTemplate template)
throws WTException
- Throws:
WTException
stringWfConnectorTemplate
private static String stringWfConnectorTemplate(WfConnectorTemplate template)
throws WTException
- Throws:
WTException
stringNodeTemplateLink
private static String stringNodeTemplateLink(NodeTemplateLink template)
throws WTException
- Throws:
WTException
addRelatedObjectInfo
private static String addRelatedObjectInfo(Object template)
throws WTException
- Throws:
WTException
addWfEventActionPairs
private static String addWfEventActionPairs(NodeTemplateLink template)
throws WTException
- Throws:
WTException
addWfPrincipalAssignees
private static String addWfPrincipalAssignees(WfAssignedActivityTemplate template)
throws WTException
- Throws:
WTException
addWfPrincipalAssignees
private static String addWfPrincipalAssignees(WfInternalMethodTemplate template)
throws WTException
- Throws:
WTException
addWfRoleAssignees
private static String addWfRoleAssignees(WfAssignedActivityTemplate template)
throws WTException
- Throws:
WTException
addWfRoleAssignees
private static String addWfRoleAssignees(WfInternalMethodTemplate template)
throws WTException
- Throws:
WTException
addWfActorRoleAssignees
private static String addWfActorRoleAssignees(WfAssignedActivityTemplate template)
throws WTException
- Throws:
WTException
addWfActorRoleAssignees
private static String addWfActorRoleAssignees(WfInternalMethodTemplate template)
throws WTException
- Throws:
WTException
addWfTeamAssignees
private static String addWfTeamAssignees(WfAssignedActivityTemplate template)
throws WTException
- Throws:
WTException
addWfTeamAssignees
private static String addWfTeamAssignees(WfInternalMethodTemplate template)
throws WTException
- Throws:
WTException
addWfVariableAssignees
private static String addWfVariableAssignees(WfAssignedActivityTemplate template)
throws WTException
- Throws:
WTException
addWfVariableAssignees
private static String addWfVariableAssignees(WfInternalMethodTemplate template)
throws WTException
- Throws:
WTException
addWfOverdueNotificationRoleAssignees
private static String addWfOverdueNotificationRoleAssignees(WfTemplateObject template)
throws WTException
- Throws:
WTException
addWfVariables
private static String addWfVariables(WfTemplateObject template)
throws WTException
- Throws:
WTException
addWfExpressions
private static String addWfExpressions(WfTemplateObject template)
throws WTException
- Throws:
WTException
addWfOverdueActions
private static String addWfOverdueActions(WfTemplateObject template)
throws WTException
- Throws:
WTException
addWfExceptionActions
private static String addWfExceptionActions(WfTemplateObject template)
throws WTException
- Throws:
WTException
addWfEnvironments
private static String addWfEnvironments(WfApplRobotTemplate template)
throws WTException
- Throws:
WTException
addWfSignatures
private static String addWfSignatures(WfInvokedMethodTemplate template)
throws WTException
- Throws:
WTException
insertWfNodeTemplateAttr
private static String insertWfNodeTemplateAttr(WfNodeTemplate template)
throws WTException
- Throws:
WTException
insertWfTemplateObjectAttr
private static String insertWfTemplateObjectAttr(WfTemplateObject template)
throws WTException
- Throws:
WTException
insertWfAssignedActivityTemplateAttr
private static String insertWfAssignedActivityTemplateAttr(WfAssignedActivityTemplate template)
throws WTException
- Throws:
WTException
insertWfRobotActivityTemplateAttr
private static String insertWfRobotActivityTemplateAttr(WfRobotActivityTemplate template)
throws WTException
- Throws:
WTException
insertWfInvokedMethodTemplateAttr
private static String insertWfInvokedMethodTemplateAttr(WfInvokedMethodTemplate template)
throws WTException
- Throws:
WTException
replaceSpecialCharacters
private static String replaceSpecialCharacters(String string)
throws WTException
- Throws:
WTException
verifyDirectoryExists
private static File verifyDirectoryExists(String directoryToVerify,
boolean autoCreate)
throws WfException
- Throws:
WfException
getInitSynchExpression
private static WfExpression getInitSynchExpression(WfRobotActivityTemplate template)
throws WTException
- Throws:
WTException
exportTemplateAsStringBuffer
protected static StringBuffer exportTemplateAsStringBuffer(WfProcessTemplate template,
StringBuffer buf)
throws WTException
- Throws:
WTException
getId
private static ObjectIdentifier getId(Object object)
- Helper method that extracts object identifier.