public interface B2BWorkflowIntegrationService
| Modifier and Type | Interface and Description |
|---|---|
static class |
B2BWorkflowIntegrationService.ACTIONCODES
The Enum ACTIONCODES.
|
static class |
B2BWorkflowIntegrationService.DECISIONCODES
The Enum DECISIONCODES.
|
| Modifier and Type | Method and Description |
|---|---|
void |
approveWorkflowAction(WorkflowActionModel workflowActionModel)
Deprecated.
Since 4.4. Use
decideAction(de.hybris.platform.workflow.model.WorkflowActionModel, String)
decideAction(action, DECISIONCODES.APPROVE.name()) |
WorkflowModel |
createWorkflow(WorkflowTemplateModel template,
java.util.List<? extends ItemModel> attachments)
|
WorkflowTemplateModel |
createWorkflowTemplate(java.util.List<? extends UserModel> users,
java.lang.String code,
java.lang.String description,
WorkflowTemplateType templateType)
This will create a WorkflowTemplateModel if one does not exist
|
void |
decideAction(WorkflowActionModel workflowActionModel,
java.lang.String decisionQualifier)
Makes a decision on an action based on the qualifier (The qualifier is used to look up a decision with its code
build from
AbstractWorkflowActionModel.CODE_decisionQualifier) |
java.util.Collection<WorkflowActionModel> |
findByActionStatusAndUser(WorkflowActionStatus status,
java.lang.String qualifier,
UserModel user)
Deprecated.
As of hybris 4.4, replaced by
getWorkflowActionsForActionStatusAndUser(WorkflowActionStatus, String, UserModel) |
WorkflowModel |
findWorkflowForOrder(OrderModel order)
Deprecated.
As of hybris 4.4, replaced by
getWorkflowForOrder(OrderModel) |
java.lang.String |
generateWorkflowTemplateCode(java.lang.String prefix,
java.util.List<? extends UserModel> users)
Generates a list of appended prefix_
PrincipalModel.UID |
WorkflowActionModel |
getActionByCode(java.lang.String code)
Deprecated.
As of hybris 4.4, replaced by
getActionForCode(String) |
WorkflowActionModel |
getActionForCode(java.lang.String code)
Get WorkflowAction for its code.
|
OrderModel |
getOrderFromAction(WorkflowActionModel workflowActionModel)
Gets the associated order to the WorkflowActionModel qualifier.
|
java.util.Collection<WorkflowActionModel> |
getStartWorkflowActions(WorkflowModel workflow)
Gets all WorkFlowActions that are of
WorkflowActionType.START type. |
java.util.Collection<WorkflowActionModel> |
getWorkflowActionsForActionStatusAndUser(WorkflowActionStatus status,
java.lang.String qualifier,
UserModel user)
Gets all WorkflowActions by user, workflowActionStatus (eg IN_PROGRESS) and qualifier (eg APPROVAL)
|
java.util.Collection<WorkflowActionModel> |
getWorkflowActionsForUser(UserModel user)
Gets a collection of workflow actions for a user
|
WorkflowModel |
getWorkflowForOrder(OrderModel order)
Get the Workflow for an Order.
|
WorkflowTemplateModel |
getWorkflowTemplateForCode(java.lang.String code)
Deprecated.
|
void |
rejectWorkflowAction(WorkflowActionModel workflowActionModel)
Deprecated.
Since 4.4. Use
decideAction(de.hybris.platform.workflow.model.WorkflowActionModel, String)
decideAction(action, DECISIONCODES.REJECT.name()) |
void |
startWorkflow(WorkflowModel workflowModel)
Deprecated.
|
java.util.Collection<WorkflowActionModel> getStartWorkflowActions(WorkflowModel workflow)
WorkflowActionType.START type.workflow - the WorkflowModel@Deprecated WorkflowTemplateModel getWorkflowTemplateForCode(java.lang.String code)
WorkflowTemplateService.getWorkflowTemplateForCode(String)code - the WorkflowActionType codeWorkflowTemplateModel createWorkflowTemplate(java.util.List<? extends UserModel> users, java.lang.String code, java.lang.String description, WorkflowTemplateType templateType)
users - the approvers that a work flow template will be created forcode - the code of the templatedescription - the short description for the templatetemplateType - the strategy type of the templatejava.lang.String generateWorkflowTemplateCode(java.lang.String prefix,
java.util.List<? extends UserModel> users)
PrincipalModel.UIDprefix - the String to which the user id is appended tousers - the list of users in which the template code will be generated for@Deprecated WorkflowModel createWorkflow(WorkflowTemplateModel template, java.util.List<? extends ItemModel> attachments)
WorkflowService.createWorkflow(String, de.hybris.platform.workflow.model.WorkflowTemplateModel, java.util.List, de.hybris.platform.core.model.user.UserModel)template - the workflow templateattachments - the workflow attachments@Deprecated void startWorkflow(WorkflowModel workflowModel)
WorkflowProcessingService.startWorkflow(de.hybris.platform.workflow.model.WorkflowModel)workflowModel - @Deprecated java.util.Collection<WorkflowActionModel> findByActionStatusAndUser(WorkflowActionStatus status, java.lang.String qualifier, UserModel user)
getWorkflowActionsForActionStatusAndUser(WorkflowActionStatus, String, UserModel)status - the action statusqualifier - the qualifieruser - the assigned userCollection of {WorkflowActionModel}java.util.Collection<WorkflowActionModel> getWorkflowActionsForActionStatusAndUser(WorkflowActionStatus status, java.lang.String qualifier, UserModel user)
status - the work flow action statusqualifier - the qualifier (eg APPROVAL)user - the userOrderModel getOrderFromAction(WorkflowActionModel workflowActionModel)
workflowActionModel - the work flow action@Deprecated void rejectWorkflowAction(WorkflowActionModel workflowActionModel)
decideAction(de.hybris.platform.workflow.model.WorkflowActionModel, String)
decideAction(action, DECISIONCODES.REJECT.name())workflowActionModel - @Deprecated void approveWorkflowAction(WorkflowActionModel workflowActionModel)
decideAction(de.hybris.platform.workflow.model.WorkflowActionModel, String)
decideAction(action, DECISIONCODES.APPROVE.name())workflowActionModel - @Deprecated WorkflowActionModel getActionByCode(java.lang.String code)
getActionForCode(String)code - the action codeWorkflowActionModel getActionForCode(java.lang.String code)
code - the WorkflowAction's code@Deprecated WorkflowModel findWorkflowForOrder(OrderModel order)
getWorkflowForOrder(OrderModel)order - the order for which to find the workflowWorkflowModelWorkflowModel getWorkflowForOrder(OrderModel order)
order - the ordervoid decideAction(WorkflowActionModel workflowActionModel, java.lang.String decisionQualifier)
AbstractWorkflowActionModel.CODE_decisionQualifier)workflowActionModel - The action to make a decision upondecisionQualifier - a qualifier based on B2BWorkflowIntegrationService.DECISIONCODES enumerationjava.util.Collection<WorkflowActionModel> getWorkflowActionsForUser(UserModel user)
user - the userCollection of WorkflowActionModelCopyright © 2018 SAP SE. All Rights Reserved.