|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.workflow.definer.WfDefinitionHandler
Handle the Definition of a Workflow Template. The Workflow Definition is passed in a TransactionContainer which is a structure containing a set of assertions. Each assertion contains an object and the type of update: add, remove, modify.
Field Summary | |
private static int |
APPLICATION_TEMPLATE
|
private static int |
ASSIGNED_ACTIVITY_TEMPLATE
|
private TransactionContainer |
aTran
|
private static int |
BLOCK_TEMPLATE
|
private static int |
CONNECTOR_TEMPLATE
|
private static int |
EXPRESSION
|
private static int |
EXPRESSION_TEMPLATE
|
private static int |
EXTERNAL_METHOD_TEMPLATE
|
private static int |
INTERNAL_METHOD_TEMPLATE
|
private static boolean |
ITERATION
|
private static int |
NODE_TEMPLATE_LINK
|
private static int |
OTHER_BC_OBJECT
|
private static int |
OTHER_RBC_OBJECT
|
private static int |
PROCESS_STEP_TEMPLATE_LINK
|
private static int |
PROCESS_TEMPLATE
|
private static int |
PROXY_TEMPLATE
|
private static boolean |
REPLACE_DESCRIPTION
|
private static String |
RESOURCE
|
private static String |
SERVICE_NAME
|
private static int |
SYNCHRONIZATION_TEMPLATE
|
private static int |
TIMER_TEMPLATE
|
private static int |
URL_TEMPLATE
|
private static boolean |
USE_DELEGATE
|
private static boolean |
VERBOSE
|
Constructor Summary | |
protected |
WfDefinitionHandler(TransactionContainer container)
Creates a definition handler. |
Method Summary | |
private static void |
deleteApplicationTemplate(WfApplRobotTemplate bt)
Process the deletion of an WfApplRobotTemplate object. |
private static void |
deleteBlockTemplate(WfBlockTemplate bt)
Process the deletion of an WfBlockTemplate object. |
private static void |
deleteExpression(WfExpression e)
Process the deletion of an Expression object. |
private static void |
deleteExpressionTemplate(WfExprRobotTemplate bt)
Process the deletion of an WfExprRobotTemplate object. |
private static void |
deleteNodeTemplateLink(NodeTemplateLink ntl)
Process the deletion of an NodeTemplateLink object. |
private static void |
deleteProcessStepTemplateLink(ProcessStepTemplateLink pstl)
Process the deletion of an ProcessStepTemplateLink object. |
private static void |
deleteProxyTemplate(WfProxyTemplate pt)
Process the deletion of an WfProxyTemplate object. |
private static void |
deleteSynchronizationTemplate(WfSynchRobotTemplate bt)
Process the deletion of an WfSynchRobotTemplate object. |
protected static TransactionResult |
doSave(TransactionContainer aTran,
WTContainerRef context_ref)
Process the TransactionContainer. |
private TransactionResult |
doSave(WTContainerRef context_ref)
Process the TransactionContainer. |
private static String |
getOidString(Object object)
|
private static int |
getType(Assertion asser)
Determine the type of object in the Assertion. |
private static void |
handleApplicationTemplate(Assertion asser,
AdminDomainRef domain_ref,
WTContainerRef context_ref)
Process the WfApplRobotTemplate object's assertion. |
private static void |
handleAssignedActivityTemplate(Assertion asser,
AdminDomainRef domain_ref,
WTContainerRef context_ref)
Process the AssignedActivityTemplate object's assertion. |
private static void |
handleBlockTemplate(Assertion asser,
AdminDomainRef domain_ref,
WTContainerRef context_ref)
Process the WfBlockTemplate object's assertion. |
private static void |
handleConnectorTemplate(Assertion asser)
Process the Connector object's assertion. |
private static void |
handleExpression(Assertion asser)
Process the Expression's assertion. |
private static void |
handleExpressionTemplate(Assertion asser,
AdminDomainRef domain_ref,
WTContainerRef context_ref)
Process the WfExprRobotTemplate object's assertion. |
private static void |
handleExternalMethodTemplate(Assertion asser,
AdminDomainRef domain_ref,
WTContainerRef context_ref)
Process the ExternalMethodTemplate object's assertion. |
private static void |
handleInternalMethodTemplate(Assertion asser,
AdminDomainRef domain_ref,
WTContainerRef context_ref)
Process the InternalMethodTemplate object's assertion. |
private static void |
handleNodeTemplateLink(Assertion asser)
Process the NodeTemplateLink link object's assertion. |
private static void |
handleProcessStepTemplateLink(Assertion asser)
Process the ProcessStepTemplateLink link object's assertion. |
private static void |
handleProcessTemplate(Assertion asser,
WTContainerRef context_ref)
Process the WfProcessTemplate object's assertion. |
private static void |
handleProxyTemplate(Assertion asser,
AdminDomainRef domain_ref,
WTContainerRef context_ref)
Process the WfProxyTemplateLink link object's assertion. |
private static void |
handleSynchronizationTemplate(Assertion asser,
AdminDomainRef domain_ref,
WTContainerRef context_ref)
Process the handleSynchronizationTemplate object's assertion. |
private static void |
handleTimerTemplate(Assertion asser,
AdminDomainRef domain_ref,
WTContainerRef context_ref)
Process the TimerTemplate object's assertion. |
private static void |
handleURLTemplate(Assertion asser,
AdminDomainRef domain_ref,
WTContainerRef context_ref)
Process the WfURLRobotTemplate object's assertion. |
private void |
postProcessAssertion(Assertion asser)
Given a BatchContainer assertion, perform the post-processing validation on the target object/type of assertion. |
private void |
postValidateAssertion(Assertion asser)
Given a BatchContainer assertion, perform the post validation on the target object/type of assertion. |
private void |
preValidateAssertion(Assertion asser)
Given a BatchContainer Assertion, perform the pre-processing validation on the target object/type of assertion. |
private void |
processAssertion(Assertion asser,
WTContainerRef context_ref)
Given a BatchContainer Assertion, process the assertion Supported API: false |
private static void |
removeConnectorTemplate(WfConnectorTemplate ct)
Process the deletion of an Connector template object. |
private static void |
removeProcessTemplate(WfProcessTemplate aWfProcessTemplate)
Removes process template |
private static void |
removeStepTemplate(WfTemplateObject step_def)
Removes step template from its containing process. |
private static String |
showAssertion(Assertion asser)
|
private static void |
updateStepTemplate(ProcessStepTemplateLink link,
boolean isRemove)
Updates both the parent process reference and the link reference on the step side of the link. |
private static WfApplRobotTemplate |
validateApplicationTemplate(WfApplRobotTemplate Ap)
|
private static WfAssignedActivityTemplate |
validateAssignedActivityTemplate(WfAssignedActivityTemplate aat)
|
private static WfBlockTemplate |
validateBlockTemplate(WfBlockTemplate bt)
|
private static WfConnectorTemplate |
validateConnectorTemplate(WfConnectorTemplate ct)
|
private static WfExpression |
validateExpression(WfExpression e)
|
private static WfExprRobotTemplate |
validateExpressionTemplate(WfExprRobotTemplate Ex)
|
private static WfExternalMethodTemplate |
validateExternalMethodTemplate(WfExternalMethodTemplate emt)
|
private static WfInternalMethodTemplate |
validateInternalMethodTemplate(WfInternalMethodTemplate imt)
|
private static NodeTemplateLink |
validateNodeTemplateLink(NodeTemplateLink ntl)
|
private static ProcessStepTemplateLink |
validateProcessStepTemplateLink(ProcessStepTemplateLink pstl)
|
private static WfProcessTemplate |
validateProcessTemplate(WfProcessTemplate pt)
|
private static WfProxyTemplate |
validateProxyTemplate(WfProxyTemplate pt)
|
private static WfSynchRobotTemplate |
validateSynchronizationTemplate(WfSynchRobotTemplate Synch)
|
private static WfTimerTemplate |
validateTimerTemplate(WfTimerTemplate tt)
|
private static WfURLRobotTemplate |
validateURLTemplate(WfURLRobotTemplate ut)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final int PROCESS_TEMPLATE
private static final int ASSIGNED_ACTIVITY_TEMPLATE
private static final int CONNECTOR_TEMPLATE
private static final int EXPRESSION
private static final int INTERNAL_METHOD_TEMPLATE
private static final int EXTERNAL_METHOD_TEMPLATE
private static final int PROCESS_STEP_TEMPLATE_LINK
private static final int NODE_TEMPLATE_LINK
private static final int PROXY_TEMPLATE
private static final int BLOCK_TEMPLATE
private static final int APPLICATION_TEMPLATE
private static final int EXPRESSION_TEMPLATE
private static final int TIMER_TEMPLATE
private static final int SYNCHRONIZATION_TEMPLATE
private static final int URL_TEMPLATE
private static final int OTHER_BC_OBJECT
private static final int OTHER_RBC_OBJECT
private static final boolean VERBOSE
private static final boolean USE_DELEGATE
private static final String SERVICE_NAME
private static final boolean ITERATION
private static final boolean REPLACE_DESCRIPTION
private TransactionContainer aTran
Constructor Detail |
protected WfDefinitionHandler(TransactionContainer container)
Method Detail |
private TransactionResult doSave(WTContainerRef context_ref)
protected static TransactionResult doSave(TransactionContainer aTran, WTContainerRef context_ref)
aTran
- A TransactionContainer that contains a set of assertions about a Workflow Definition.private void preValidateAssertion(Assertion asser) throws WfException, WTException
asser
- the BatchContainer assertion to be processed
WfException
WTException
private void processAssertion(Assertion asser, WTContainerRef context_ref) throws WTPropertyVetoException, WfException, WTException
asser
- the BatchContainer assertion to be procesed
WfException
WTException
WTPropertyVetoException
private void postValidateAssertion(Assertion asser) throws WfException, WTException
asser
- the BatchContainer assertion to be processed
WfException
WTException
private void postProcessAssertion(Assertion asser) throws WfException, WTException
asser
- the BatchContainer assertion to be processed
WfException
WTException
private static int getType(Assertion asser)
asser
- The assertion whose object type needs to be determined
private static void handleProcessTemplate(Assertion asser, WTContainerRef context_ref) throws WTPropertyVetoException, WTException
asser
- The assertion that contains the WfProcessTemplate to be processed.
WTException
- An error occurred in the persistence of the object.
WTPropertyVetoException
private static void handleAssignedActivityTemplate(Assertion asser, AdminDomainRef domain_ref, WTContainerRef context_ref) throws WTException, WTPropertyVetoException
asser
- The assertion that contains the AssignedActivytTemplate to be processed.
WTException
- An error occurred during the persistence
WTPropertyVetoException
private static void handleConnectorTemplate(Assertion asser) throws WTException
asser
- The assertion that contains the ConnectorTemplate to be processed.
WTException
- An error occurred in the persistence of the object.private static void handleInternalMethodTemplate(Assertion asser, AdminDomainRef domain_ref, WTContainerRef context_ref) throws WTException, WTPropertyVetoException
asser
- The assertion that contains the to be processed.
WTException
- An error occurred during the persistence
WTPropertyVetoException
private static void handleTimerTemplate(Assertion asser, AdminDomainRef domain_ref, WTContainerRef context_ref) throws WTException, WTPropertyVetoException
asser
- The assertion that contains the to be processed.
WTException
- An error occurred during the persistence
WTPropertyVetoException
private static void handleURLTemplate(Assertion asser, AdminDomainRef domain_ref, WTContainerRef context_ref) throws WTException, WTPropertyVetoException
asser
- The assertion that contains the to be processed.
WTException
- An error occurred during the persistence
WTPropertyVetoException
private static void handleExternalMethodTemplate(Assertion asser, AdminDomainRef domain_ref, WTContainerRef context_ref) throws WTException, WTPropertyVetoException
asser
- The assertion that contains the to be processed.
WTException
- An error occurred during the persistence
WTPropertyVetoException
private static void handleExpression(Assertion asser) throws WTException
asser
- The assertion that contains the PhaseLink to be processed.
WTException
- An error occurred in the persistence of the link object.private static void handleProcessStepTemplateLink(Assertion asser) throws WTException
asser
- The assertion that contains the ProcessStepTemplateLink to be processed.
WTException
- An error occurred in the persistence of the link object.private static void updateStepTemplate(ProcessStepTemplateLink link, boolean isRemove) throws WTException
Note: Both a reference to the parent template and to the link are kept with the template object for performance reasons (avoid navigate operations).
link
- ProcessStepTemplateLink
WTException
- An error occurred in the persistence of the link object.private static void handleNodeTemplateLink(Assertion asser) throws WTException
asser
- The assertion that contains the NodeTemplateLink to be processed.
WTException
- An error occurred in the persistence of the link object.private static void handleProxyTemplate(Assertion asser, AdminDomainRef domain_ref, WTContainerRef context_ref) throws WTException, WTPropertyVetoException
asser
- The assertion that contains the NodeTemplateLink to be processed.
WTException
- An error occurred in the persistence of the link object.
WTPropertyVetoException
private static void handleBlockTemplate(Assertion asser, AdminDomainRef domain_ref, WTContainerRef context_ref) throws WTException, WTPropertyVetoException
asser
- The assertion that contains the WfBlockTemplateLink to be processed.
WTException
- An error occurred in the persistence of the link object.
WTPropertyVetoException
private static void handleExpressionTemplate(Assertion asser, AdminDomainRef domain_ref, WTContainerRef context_ref) throws WTException, WTPropertyVetoException
asser
- The assertion that contains the WfExprRobotTemplateLink to be processed.
WTException
- An error occurred in the persistence of the link object.
WTPropertyVetoException
private static void handleApplicationTemplate(Assertion asser, AdminDomainRef domain_ref, WTContainerRef context_ref) throws WTException, WTPropertyVetoException
asser
- The assertion that contains the WfApplRobotTemplateLink to be processed.
WTException
- An error occurred in the persistence of the link object.
WTPropertyVetoException
private static void handleSynchronizationTemplate(Assertion asser, AdminDomainRef domain_ref, WTContainerRef context_ref) throws WTException, WTPropertyVetoException
asser
- The assertion that contains the WfSynchRobotTemplateLink to be processed.
WTException
- An error occurred in the persistence of the link object.
WTPropertyVetoException
private static void removeProcessTemplate(WfProcessTemplate aWfProcessTemplate) throws WTException
WTException
private static void removeStepTemplate(WfTemplateObject step_def) throws WTException
step_def
-
WTException
private static void removeConnectorTemplate(WfConnectorTemplate ct) throws WTException
ct
- The connector to be deleted.
WTException
- An error occurred in the processing of the delete.private static void deleteExpression(WfExpression e) throws WTException
e
- The Expression to be deleted.
WTException
- An error occurred in the processing of the delete.private static void deleteProcessStepTemplateLink(ProcessStepTemplateLink pstl) throws WTException
pstl
- The step template link to be deleted.
WTException
private static void deleteNodeTemplateLink(NodeTemplateLink ntl) throws WTException
ntl
- The node template link to be deleted.
WTException
private static void deleteProxyTemplate(WfProxyTemplate pt) throws WTException
pt
- The node template link to be deleted.
WTException
private static void deleteBlockTemplate(WfBlockTemplate bt) throws WTException
bt
- The block template link to be deleted.
WTException
private static void deleteExpressionTemplate(WfExprRobotTemplate bt) throws WTException
bt
- The Expressiontemplate link to be deleted.
WTException
private static void deleteApplicationTemplate(WfApplRobotTemplate bt) throws WTException
bt
- The WfApplRobotTemplate link to be deleted.
WTException
private static void deleteSynchronizationTemplate(WfSynchRobotTemplate bt) throws WTException
bt
- The WfSynchRobotTemplate link to be deleted.
WTException
private static String getOidString(Object object)
private static String showAssertion(Assertion asser)
private static WfProcessTemplate validateProcessTemplate(WfProcessTemplate pt) throws WTException
WTException
private static WfAssignedActivityTemplate validateAssignedActivityTemplate(WfAssignedActivityTemplate aat) throws WTException
WTException
private static WfConnectorTemplate validateConnectorTemplate(WfConnectorTemplate ct) throws WTException
WTException
private static ProcessStepTemplateLink validateProcessStepTemplateLink(ProcessStepTemplateLink pstl) throws WTException
WTException
private static NodeTemplateLink validateNodeTemplateLink(NodeTemplateLink ntl) throws WTException
WTException
private static WfExpression validateExpression(WfExpression e) throws WTException
WTException
private static WfInternalMethodTemplate validateInternalMethodTemplate(WfInternalMethodTemplate imt) throws WTException
WTException
private static WfTimerTemplate validateTimerTemplate(WfTimerTemplate tt) throws WTException
WTException
private static WfURLRobotTemplate validateURLTemplate(WfURLRobotTemplate ut) throws WTException
WTException
private static WfExternalMethodTemplate validateExternalMethodTemplate(WfExternalMethodTemplate emt) throws WTException
WTException
private static WfProxyTemplate validateProxyTemplate(WfProxyTemplate pt) throws WTException
WTException
private static WfBlockTemplate validateBlockTemplate(WfBlockTemplate bt) throws WTException
WTException
private static WfExprRobotTemplate validateExpressionTemplate(WfExprRobotTemplate Ex) throws WTException
WTException
private static WfApplRobotTemplate validateApplicationTemplate(WfApplRobotTemplate Ap) throws WTException
WTException
private static WfSynchRobotTemplate validateSynchronizationTemplate(WfSynchRobotTemplate Synch) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |