public class DefaultB2BWorkflowIntegrationService extends java.lang.Object implements B2BWorkflowIntegrationService
B2BWorkflowIntegrationServiceB2BWorkflowIntegrationService.ACTIONCODES, B2BWorkflowIntegrationService.DECISIONCODES| Constructor and Description |
|---|
DefaultB2BWorkflowIntegrationService() |
| Modifier and Type | Method and Description |
|---|---|
void |
approveWorkflowAction(WorkflowActionModel workflowActionModel)
Deprecated.
Since 6.2. Use
decideAction(de.hybris.platform.workflow.model.WorkflowActionModel, String)
decideAction(action, DECISIONCODES.APPROVE.name()) |
WorkflowModel |
createWorkflow(WorkflowTemplateModel template,
java.util.List<? extends ItemModel> attachments)
Deprecated.
Since 4.4. Use
WorkflowService.createWorkflow(String, de.hybris.platform.workflow.model.WorkflowTemplateModel, java.util.List, de.hybris.platform.core.model.user.UserModel)
usage of the method should be removed pending fix to https://jira.hybris.com/browse/PLA-10938 |
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) |
protected void |
decideAction(WorkflowActionModel workflowActionModel,
WorkflowDecisionModel workflowDecisionModel) |
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)
Deprecated.
Since 4.4.
|
protected B2BWorflowActionDao |
getB2bWorkflowActionDao() |
protected B2BWorkflowDao |
getB2bWorkflowDao() |
protected BaseDao |
getBaseDao() |
protected ModelService |
getModelService() |
OrderModel |
getOrderFromAction(WorkflowActionModel workflowActionModel)
Gets the associated order to the WorkflowActionModel qualifier.
|
protected SessionService |
getSessionService() |
java.util.Collection<WorkflowActionModel> |
getStartWorkflowActions(WorkflowModel workflow)
Gets all WorkFlowActions that are of
WorkflowActionType.START type. |
protected UserService |
getUserService() |
protected WorkflowActionModel |
getWorkAction(WorkflowActionTemplateModel templateAction,
java.util.Collection<WorkflowActionModel> workflowActions)
Deprecated.
Since 4.4. Unused, will be removed in the next release
|
protected WorkflowActionService |
getWorkflowActionService() |
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
|
protected WorkflowAttachmentService |
getWorkflowAttachmentService() |
WorkflowModel |
getWorkflowForOrder(OrderModel order)
Get the Workflow for an Order.
|
protected WorkflowProcessingService |
getWorkflowProcessingService() |
protected WorkflowService |
getWorkflowService() |
WorkflowTemplateStrategy |
getWorkflowTempateStrategy(WorkflowTemplateType workflowTemplateType)
Gets a workflow template strategy by template type
|
WorkflowTemplateModel |
getWorkflowTemplateForCode(java.lang.String code)
Gets the WorkflowTemplateModel based on the code.
|
protected WorkflowTemplateService |
getWorkflowTemplateService() |
void |
rejectWorkflowAction(WorkflowActionModel workflowActionModel)
Deprecated.
Since 6.2. Use
decideAction(de.hybris.platform.workflow.model.WorkflowActionModel, String)
decideAction(action, DECISIONCODES.REJECT.name()) |
void |
setB2bWorkflowActionDao(B2BWorflowActionDao b2bWorkflowActionDao) |
void |
setB2bWorkflowDao(B2BWorkflowDao b2bWorkflowDao) |
void |
setBaseDao(BaseDao baseDao) |
void |
setModelService(ModelService modelService) |
void |
setSessionService(SessionService sessionService) |
void |
setUserService(UserService userService) |
void |
setWorkflowActionService(WorkflowActionService workflowActionService) |
void |
setWorkflowProcessingService(WorkflowProcessingService workflowProcessingService) |
void |
setWorkflowService(WorkflowService workflowService) |
void |
setWorkflowTemplateService(WorkflowTemplateService workflowTemplateService) |
void |
setWorkflowTemplateStrategies(java.util.List<WorkflowTemplateStrategy> workflowTemplateStrategies) |
void |
startWorkflow(WorkflowModel workflowModel)
Deprecated.
Since 4.4. Use
WorkflowProcessingService.startWorkflow(de.hybris.platform.workflow.model.WorkflowModel)
usage of the method should be removed pending fix to https://jira.hybris.com/browse/PLA-10938 |
public DefaultB2BWorkflowIntegrationService()
@Deprecated public WorkflowActionModel getActionByCode(java.lang.String code)
getActionForCode(String)getActionByCode in interface B2BWorkflowIntegrationServicecode - the action code@Deprecated public WorkflowActionModel getActionForCode(java.lang.String code)
B2BWorkflowIntegrationServicegetActionForCode in interface B2BWorkflowIntegrationServicecode - the WorkflowAction's code@Deprecated public java.util.Collection<WorkflowActionModel> findByActionStatusAndUser(WorkflowActionStatus status, java.lang.String qualifier, UserModel user)
getWorkflowActionsForActionStatusAndUser(WorkflowActionStatus, String, UserModel)findByActionStatusAndUser in interface B2BWorkflowIntegrationServicestatus - the action statusqualifier - the qualifieruser - the assigned userCollection of {WorkflowActionModel}public java.util.Collection<WorkflowActionModel> getWorkflowActionsForActionStatusAndUser(WorkflowActionStatus status, java.lang.String qualifier, UserModel user)
getWorkflowActionsForActionStatusAndUser in interface B2BWorkflowIntegrationServicestatus - the work flow action statusqualifier - the qualifier (eg APPROVAL)user - the userpublic java.util.Collection<WorkflowActionModel> getWorkflowActionsForUser(UserModel user)
B2BWorkflowIntegrationServicegetWorkflowActionsForUser in interface B2BWorkflowIntegrationServiceuser - the userCollection of WorkflowActionModel@Deprecated public void approveWorkflowAction(WorkflowActionModel workflowActionModel)
decideAction(de.hybris.platform.workflow.model.WorkflowActionModel, String)
decideAction(action, DECISIONCODES.APPROVE.name())approveWorkflowAction in interface B2BWorkflowIntegrationService@Deprecated public void rejectWorkflowAction(WorkflowActionModel workflowActionModel)
decideAction(de.hybris.platform.workflow.model.WorkflowActionModel, String)
decideAction(action, DECISIONCODES.REJECT.name())rejectWorkflowAction in interface B2BWorkflowIntegrationServicepublic void decideAction(WorkflowActionModel workflowActionModel, java.lang.String decisionQualifier)
AbstractWorkflowActionModel.CODE_decisionQualifier)decideAction in interface B2BWorkflowIntegrationServiceworkflowActionModel - The action to make a decision upondecisionQualifier - a qualifier based on B2BWorkflowIntegrationService DECISIONCODES enumerationprotected void decideAction(WorkflowActionModel workflowActionModel, WorkflowDecisionModel workflowDecisionModel)
public OrderModel getOrderFromAction(WorkflowActionModel workflowActionModel)
B2BWorkflowIntegrationServicegetOrderFromAction in interface B2BWorkflowIntegrationServiceworkflowActionModel - the work flow action@Deprecated public 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)
usage of the method should be removed pending fix to https://jira.hybris.com/browse/PLA-10938createWorkflow in interface B2BWorkflowIntegrationServicetemplate - the workflow templateattachments - the workflow attachments@Deprecated protected WorkflowActionModel getWorkAction(WorkflowActionTemplateModel templateAction, java.util.Collection<WorkflowActionModel> workflowActions)
public WorkflowTemplateModel getWorkflowTemplateForCode(java.lang.String code)
B2BWorkflowIntegrationServicegetWorkflowTemplateForCode in interface B2BWorkflowIntegrationServicecode - the WorkflowActionType code@Deprecated public void startWorkflow(WorkflowModel workflowModel)
WorkflowProcessingService.startWorkflow(de.hybris.platform.workflow.model.WorkflowModel)
usage of the method should be removed pending fix to https://jira.hybris.com/browse/PLA-10938startWorkflow in interface B2BWorkflowIntegrationServicepublic java.lang.String generateWorkflowTemplateCode(java.lang.String prefix,
java.util.List<? extends UserModel> users)
B2BWorkflowIntegrationServicePrincipalModel.UIDgenerateWorkflowTemplateCode in interface B2BWorkflowIntegrationServiceprefix - the String to which the user id is appended tousers - the list of users in which the template code will be generated forpublic java.util.Collection<WorkflowActionModel> getStartWorkflowActions(WorkflowModel workflow)
B2BWorkflowIntegrationServiceWorkflowActionType.START type.getStartWorkflowActions in interface B2BWorkflowIntegrationServiceworkflow - the WorkflowModelpublic WorkflowTemplateModel createWorkflowTemplate(java.util.List<? extends UserModel> users, java.lang.String code, java.lang.String description, WorkflowTemplateType templateType)
B2BWorkflowIntegrationServicecreateWorkflowTemplate in interface B2BWorkflowIntegrationServiceusers - 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 template@Deprecated public WorkflowModel findWorkflowForOrder(OrderModel order)
getWorkflowForOrder(OrderModel)findWorkflowForOrder in interface B2BWorkflowIntegrationServiceorder - the order for which to find the workflowWorkflowModelpublic WorkflowModel getWorkflowForOrder(OrderModel order)
B2BWorkflowIntegrationServicegetWorkflowForOrder in interface B2BWorkflowIntegrationServiceorder - the orderprotected BaseDao getBaseDao()
public void setBaseDao(BaseDao baseDao)
protected UserService getUserService()
public void setUserService(UserService userService)
public void setB2bWorkflowActionDao(B2BWorflowActionDao b2bWorkflowActionDao)
protected B2BWorflowActionDao getB2bWorkflowActionDao()
protected B2BWorkflowDao getB2bWorkflowDao()
public void setB2bWorkflowDao(B2BWorkflowDao b2bWorkflowDao)
protected WorkflowService getWorkflowService()
public void setWorkflowService(WorkflowService workflowService)
protected WorkflowActionService getWorkflowActionService()
public void setWorkflowActionService(WorkflowActionService workflowActionService)
protected WorkflowTemplateService getWorkflowTemplateService()
public void setWorkflowTemplateService(WorkflowTemplateService workflowTemplateService)
protected WorkflowProcessingService getWorkflowProcessingService()
public void setWorkflowProcessingService(WorkflowProcessingService workflowProcessingService)
protected WorkflowAttachmentService getWorkflowAttachmentService()
public WorkflowTemplateStrategy getWorkflowTempateStrategy(WorkflowTemplateType workflowTemplateType)
workflowTemplateType - the template typeWorkflowTemplateStrategypublic void setWorkflowTemplateStrategies(java.util.List<WorkflowTemplateStrategy> workflowTemplateStrategies)
protected ModelService getModelService()
public void setModelService(ModelService modelService)
protected SessionService getSessionService()
public void setSessionService(SessionService sessionService)
Copyright © 2018 SAP SE. All Rights Reserved.