Add support for deferred events

- Relates to #262
This commit is contained in:
Janne Valkealahti
2016-10-18 14:58:48 +01:00
parent a4c8ddcbdd
commit 2a74efd5e5
5 changed files with 115 additions and 3 deletions

View File

@@ -89,4 +89,11 @@ public abstract class RepositoryState extends BaseRepositoryEntity {
* @return the pseudo state kind
*/
public abstract PseudoStateKind getKind();
/**
* Gets the deferred events.
*
* @return the deferred events
*/
public abstract Set<String> getDeferredEvents();
}

View File

@@ -155,6 +155,7 @@ public class RepositoryStateMachineModelFactory extends AbstractStateMachineMode
stateData.setEnd(true);
}
}
stateData.setDeferred(s.getDeferredEvents());
stateDatas.add(stateData);
}
StatesData<String, String> statesData = new StatesData<>(stateDatas);