Introduction to CRM, C4C and Hybris workflow

CRM example

Step by Step to debug IC inbox workflow WS14000164

C4C

  • Custom recipient determination in workflow rule done on Account BO

  • Automatically send an Email notification to line manager via Workflow in Account application

Hybris

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:

Intelligent Recommendation

UI Component in CRM WebUI and Hybris

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...

Product Variant in SAP CRM and Hybris

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 ...

Use SAP C4C OData notification to synchronize data between CRM and C4C

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...

Service Request Account field in CRM and C4C

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...

How will Twitter's content into SAP CRM and C4C

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...

More Recommendation

Business Partner Relationship Category in CRM and C4C

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...

C4C SAP CRM and content management (Content Management)

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...

Embed CRM WebClient UI in C4C UI

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...

Some interview questions for SAP CRM and C4C consultants

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 SAP CRM and C4C

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...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top