@DemoTest public class WorkflowTest extends ServicelayerTransactionalBaseTest
| Modifier and Type | Class and Description |
|---|---|
protected static class |
WorkflowTest.ACTIONCODES |
protected static class |
WorkflowTest.DECISIONCODES |
| Modifier and Type | Field and Description |
|---|---|
protected CatalogVersionService |
catalogVersionService |
protected FlexibleSearchService |
flexibleSearchService |
protected ModelService |
modelService |
protected WorkflowTemplateModel |
testTemplate
Template instance created at each set up.
|
protected WorkflowModel |
testWorkflow
workflow instance created at each set up.
|
protected TypeService |
typeService |
protected UserService |
userService |
protected WorkflowActionService |
workflowActionService |
protected WorkflowProcessingService |
workflowProcessingService |
protected WorkflowService |
workflowService
Reference to the manager instance.
|
jaloSession| Constructor and Description |
|---|
WorkflowTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearCache() |
protected AutomatedWorkflowActionTemplateModel |
createAutomatedWorkflowActionTemplateModel(UserModel user,
java.lang.String code,
WorkflowActionType actionType,
WorkflowTemplateModel workflow,
java.lang.Class jobClass)
Creates new automated action template.
|
protected UserModel |
createUser(java.lang.String userName)
Creates a user instance using given uid.
|
protected WorkflowActionTemplateModel |
createWorkflowActionTemplateModel(UserModel user,
java.lang.String code,
WorkflowActionType actionType,
WorkflowTemplateModel workflow)
Creates new action template.
|
protected void |
createWorkflowActionTemplateModelLinkTemplateRelation(WorkflowDecisionTemplateModel decisionTemplate,
WorkflowActionTemplateModel toAction,
java.lang.Boolean hasAndConnection) |
protected WorkflowDecisionTemplateModel |
createWorkflowDecisionTemplate(java.lang.String code,
WorkflowActionTemplateModel actionTemplate)
Creates new decision template.
|
protected WorkflowTemplateModel |
createWorkflowTemplate(UserModel user)
Creates a workflow template with given user assigned.
|
protected WorkflowTemplateModel |
createWorkflowTemplate(UserModel owner,
java.lang.String code,
java.lang.String desc)
Creates new workflow template using given user, code, and description.
|
protected WorkflowTemplateModel |
createWorkflowTemplate(UserModel owner,
java.lang.String code,
java.lang.String desc,
java.lang.String activationScript)
Creates new workflow template using given user, code, description and activation script.
|
protected WorkflowActionModel |
getAction(java.lang.String code)
Gets the action with given code from test workflow instance.
|
protected WorkflowActionTemplateModel |
getActionTemplate(java.lang.String code)
Gets the action template with given code from test workflow template.
|
protected WorkflowDecisionModel |
getDecision(java.lang.String code,
WorkflowActionModel action)
Gets the decision with given code from test workflow instance.
|
void |
setUp() |
void |
testActionsSize()
check actions size
|
void |
testTemplateActionsSize()
check actions template size
|
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionprotected WorkflowService workflowService
protected ModelService modelService
protected UserService userService
protected TypeService typeService
protected FlexibleSearchService flexibleSearchService
protected CatalogVersionService catalogVersionService
protected WorkflowActionService workflowActionService
protected WorkflowProcessingService workflowProcessingService
protected WorkflowTemplateModel testTemplate
protected WorkflowModel testWorkflow
public void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void testTemplateActionsSize()
public void testActionsSize()
protected WorkflowTemplateModel createWorkflowTemplate(UserModel user)
user - user instance to use for templateprotected UserModel createUser(java.lang.String userName)
userName - user id used for user creationprotected void clearCache()
protected WorkflowTemplateModel createWorkflowTemplate(UserModel owner, java.lang.String code, java.lang.String desc)
owner - user assigned to new templatecode - code of new templatedesc - description assigned to templateprotected WorkflowTemplateModel createWorkflowTemplate(UserModel owner, java.lang.String code, java.lang.String desc, java.lang.String activationScript)
owner - user assigned to new templatecode - code of new templatedesc - description assigned to templateactivationScript - code of the activation scriptprotected WorkflowActionTemplateModel createWorkflowActionTemplateModel(UserModel user, java.lang.String code, WorkflowActionType actionType, WorkflowTemplateModel workflow)
user - user assigned to templatecode - code of templateworkflow - workflow assigned to action templateprotected AutomatedWorkflowActionTemplateModel createAutomatedWorkflowActionTemplateModel(UserModel user, java.lang.String code, WorkflowActionType actionType, WorkflowTemplateModel workflow, java.lang.Class jobClass)
user - user assigned to templatecode - code of templateworkflow - workflow assigned to action templateprotected WorkflowDecisionTemplateModel createWorkflowDecisionTemplate(java.lang.String code, WorkflowActionTemplateModel actionTemplate)
code - code of templateactionTemplate - action template assigned to decision templateprotected void createWorkflowActionTemplateModelLinkTemplateRelation(WorkflowDecisionTemplateModel decisionTemplate, WorkflowActionTemplateModel toAction, java.lang.Boolean hasAndConnection)
decisionTemplate - toAction - hasAndConnection - protected WorkflowActionModel getAction(java.lang.String code)
code - code of needed actionprotected WorkflowDecisionModel getDecision(java.lang.String code, WorkflowActionModel action)
code - code of needed decisionprotected WorkflowActionTemplateModel getActionTemplate(java.lang.String code)
code - code of needed actionCopyright © 2018 SAP SE. All Rights Reserved.