@DemoTest public class WorkflowCompatibleTest extends ServicelayerTransactionalTest
| Modifier and Type | Field and Description |
|---|---|
protected CatalogVersionService |
catalogVersionService |
protected ModelService |
modelService |
protected TypeService |
typeService |
protected UserService |
userService |
protected WorkflowActionService |
workflowActionService |
protected WorkflowProcessingService |
workflowProcessingService |
protected WorkflowService |
workflowService |
importServicejaloSession| Constructor and Description |
|---|
WorkflowCompatibleTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToPredecessors(WorkflowActionTemplateModel source,
WorkflowActionTemplateModel target) |
protected void |
clearCache() |
protected UserModel |
createUser(java.lang.String userName) |
protected WorkflowActionTemplateModel |
createWorkflowActionTemplate(UserModel user,
java.lang.String code,
WorkflowTemplateModel workflow)
Creates new action 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 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.
|
void |
setUp() |
void |
testAssignedUserCheck() |
void |
testAttachments()
Creates some attachments and assigns them to the test workflow.
|
void |
testWorkflowCompleteChain()
Completes the actions of the test workflow and checks the action status.
|
void |
testWorkflowCompleteReject()
Rejects action 3 of test workflow and checks action status.
|
void |
testWorkflowCreate()
Checks if actions of test workflow has correct status.
|
void |
testWorkflowCreateDisableActivate()
Disable actions 1 and 2 of test workflow and checks the status of the workflow actions.
|
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionprotected WorkflowService workflowService
protected ModelService modelService
protected UserService userService
protected TypeService typeService
protected CatalogVersionService catalogVersionService
protected WorkflowActionService workflowActionService
protected WorkflowProcessingService workflowProcessingService
public void setUp()
throws java.lang.Exception
java.lang.Exceptionprotected UserModel createUser(java.lang.String userName)
public void testWorkflowCreate()
public void testWorkflowCreateDisableActivate()
public void testWorkflowCompleteChain()
public void testWorkflowCompleteReject()
public void testAttachments()
protected void clearCache()
public void testAssignedUserCheck()
protected WorkflowTemplateModel createWorkflowTemplate(UserModel user)
Action1 < -Action3
Action2 < -Action3
Action3 < -Action4
Action3 < -Action5
user - user instance to use for templatepublic void addToPredecessors(WorkflowActionTemplateModel source, WorkflowActionTemplateModel target)
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 WorkflowActionTemplateModel createWorkflowActionTemplate(UserModel user, java.lang.String code, WorkflowTemplateModel workflow)
user - user assigned to templatecode - code of templateworkflow - workflow assigned to action templateprotected WorkflowActionModel getAction(java.lang.String code)
code - code of needed actionprotected WorkflowActionTemplateModel getActionTemplate(java.lang.String code)
code - code of needed actionCopyright © 2018 SAP SE. All Rights Reserved.