Mugdha Tripathi
Mugdha Tripathi

Reputation: 11

Difference between business process and events in hybris

Please help me understand the difference between business process and events in hybris. What is the advantage of using Business Process over events?

Upvotes: 0

Views: 8752

Answers (1)

geffchang
geffchang

Reputation: 3340

The Hybris Process Engine is used for defining business processes. It is similar to a workflow (like a workflow diagram). It has a sequence/flow to be followed, and uses different kinds of nodes:

  • Action: carry out process logic and permit alternative actions to be carried out
  • Wait: wait for a subprocess or an external process result
  • Notify: inform a user or user group of the state of a process
  • Split: split the process into parallel paths
  • End: end the process and store state in a process item

Hybris also has a Workflow System. It is different from the Process Engine, but conceptually the same and uses different classes.

Business Process does not have human intervention, but a Workflow can have.

On the other hand, the Event System is simply for receiving and sending events. It's similar to the Observer design pattern.

OFFICIAL REFERENCES:

Upvotes: 4

Related Questions