File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
diagram/src/main/java/io/serverlessworkflow/diagram/model Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 25
25
26
26
import java .util .ArrayList ;
27
27
import java .util .List ;
28
+ import java .util .Optional ;
28
29
import java .util .stream .Collectors ;
29
30
30
31
public class WorkflowDiagramModel {
@@ -271,8 +272,8 @@ private void inspectStatesInfo(Workflow workflow) {
271
272
OperationState operationState = (OperationState ) state ;
272
273
273
274
modelState .addInfo ("Type: Operation State" );
274
- modelState .addInfo ("Action mode: " + operationState .getActionMode ());
275
- modelState .addInfo ("Num. of actions: " + operationState .getActions ().size ());
275
+ modelState .addInfo ("Action mode: " + Optional . ofNullable ( operationState .getActionMode ()). orElse ( OperationState . ActionMode . SEQUENTIAL ));
276
+ modelState .addInfo ("Num. of actions: " + Optional . ofNullable ( operationState .getActions ().size ()). orElse ( 0 ));
276
277
}
277
278
278
279
if (state instanceof SwitchState ) {
You can’t perform that action at this time.
0 commit comments