Marci-man
Marci-man

Reputation: 2233

Hybris Backoffice: how to trigger a create wizard programmatically

I am trying to trigger the configurable flow create wizard programmatically through an Action (in java code). Is that possible? Is there a context that can be used to reach the '+' button?

Upvotes: 0

Views: 2566

Answers (1)

Rosana Fagundes
Rosana Fagundes

Reputation: 21

You need to override the item in backoffice-config.xml of your extension. For example:

<context component="create-wizard" type="Employee">

then you change the handler to point to your bean:

<wz:custom visible="!#empty(newEmpl.uid) and !#empty(newEmpl.name)" handler="myCreateEmployeeHandler" label="Done" />

Your myCreateEmployeeHandler class:

public class MyCreateEmployeeHandler implements FlowActionHandler {
    // override perform ...
}

Hope this helps.

Upvotes: 2

Related Questions