Step by Step to debug IC inbox workflow WS14000164

Custom recipient determination in workflow rule done on Account BO
Automatically send an Email notification to line manager via Workflow in Account application
Hybris workflowFramework implementation codeIn this folder:

The workflow used at the application level has the same concept of the so-called workflow template as ABAP workflow. The following figure is an example of ABAP workflow template:

Hybris workflow:

It is also defined by impex:


The impex includes four types of models: WorkflowTemplate, WorkflowActionTemplate, WorkflowDecisionTemplate, WorkflowActionTemplateLinkTemplateRelation
1. A workflow has at least three types of actions (start/normal/end)
2. An action has at least one decision
3. A decision can be linked to the next action through WorkflowActionTemplateLinkTemplateRelation until the end node end.
Create workflow and trigger decision:
public void autoCreateWorkFlow(PrincipalModel principal, KeyInfoModel info) {
validateParameterNotNull(principal, "principal model cannot be null");
UserModel admin = userService.getUserForUID(ADMIN_CODE);
WorkflowTemplateModel workflowTemplate = workflowTemplateService.getWorkflowTemplateForCode(workflowTemplateCode);
//create a new workflow for given workflowtemplate
final WorkflowModel workflow = workflowService.createWorkflow(workflowTemplate, admin);
//add attachment for workflow
final WorkflowItemAttachmentModel attachment = modelService.create(WorkflowItemAttachmentModel.class);
AbstractOrderEntryModel orderEntry = info.getOrderEntry();
attachment.setItem(info.getOrderEntry());
attachment.setWorkflow(workflow);
attachment.setCode(orderEntry.getPk()+"_OrderEntry");
this.modelService.save(attachment);
this.modelService.refresh(attachment);
workflow.setAttachments(Collections.singletonList(attachment));
workflowProcessingService.startWorkflow(workflow);
this.autoDoStartDecision(workflow, admin);
}
To get more Jerry's original technical articles, please follow the public account "Wang Zixi" or scan the QR code below:


Hybris A component is an element in a content slot that is used to present content to customers. Components can be navigation bars, banners, site logos, search boxes, mini carts, and so on. CRM WebCli...
For Product Model / Variant in CRM, please see my blog Product Model in CRM part1 – basic introduction. Hybris As an e-commerce platform, we will naturally provide multiple styles or colors for ...
There is a useful feature OData notification in C4C which allows any kinds of external applications such as other SAP system or third party applications to hook the create, update and delete of a give...
CRM The Customer field in Service Request header is bound to Sold to Party: C4C In C4C, the field is bound to CustomerPartyID: which is then bound to BuyerParty, not Sold to Party in CRM. For more Jer...
Twitter's content into SAP CRM Interaction Center call center Concrete steps View my blogTwitter(also Facebook) is official integrated into CRM 7.0 EHP3 Creating a tweet on Twitter: After follow my bl...
CRM all value for SAP CRM Business Partner Relationship Category or RELTYP ( based on SAP CRM Table TBZ9 ( Text table is TBZ9A ): BUR001 – Contact Person Rel.ship – Has Contact Person | Is...
SAP CRM Content Management Attachments SAP CRM using this UI to provide users with content management functionality. Local documents can be uploaded to the CRM system via the New button: The content m...
The effect is shown in the figure: the SAP CRM WebClient UI login interface can be seen in SAP Cloud for Customer. The actual technology used is called SAP HTML mashup, and I have detailed implementat...
We have checked your resume and most of your project experience are based SAP consulting. However working within SAP Labs means another completely different story. In my humble opinion, the consulting...
Document flow API in CRM Take a concrete example to illustrate. You can see an area called Reference on the Overview page of Appointment, where you can maintain the IDs of some other business document...