Add enterprise business flows and fix layered sample compile.
Structured {source, event} steps in state_machine_enterprise flows.json enable HTML flow highlighting; fix additional-state configuration in layered_dispatcher_sample and refresh enterprise golden JSON.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -14,7 +14,7 @@ public class StandardDocumentStateMachineConfiguration extends AbstractDocumentS
|
||||
@Override
|
||||
protected void configureAdditionalStates(StateMachineStateConfigurer<DocumentState, DocumentTransitionEvent> states)
|
||||
throws Exception {
|
||||
states.state(DocumentState.REJECTED);
|
||||
states.withStates().state(DocumentState.REJECTED);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -14,7 +14,7 @@ public class StandardOrderStateMachineConfiguration extends AbstractOrderStateMa
|
||||
@Override
|
||||
protected void configureAdditionalStates(StateMachineStateConfigurer<OrderState, OrderTransitionEvent> states)
|
||||
throws Exception {
|
||||
states.state(OrderState.CANCELLED);
|
||||
states.withStates().state(OrderState.CANCELLED);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
[
|
||||
{
|
||||
"name": "Order fulfillment",
|
||||
"description": "Pay a new order, then ship from pending.",
|
||||
"steps": [
|
||||
{
|
||||
"source": "click.kamil.enterprise.machines.order.OrderState.NEW",
|
||||
"event": "click.kamil.enterprise.machines.order.OrderEvent.PAY"
|
||||
},
|
||||
{
|
||||
"source": "click.kamil.enterprise.machines.order.OrderState.PENDING",
|
||||
"event": "click.kamil.enterprise.machines.order.OrderEvent.SHIP"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user