Class BPMN2SyntaxChecker
- java.lang.Object
-
- org.jbpm.designer.bpmn2.validation.BPMN2SyntaxChecker
-
- All Implemented Interfaces:
SyntaxChecker
public class BPMN2SyntaxChecker extends Object implements SyntaxChecker
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
BPMN2SyntaxChecker.ValidationSyntaxError
-
Field Summary
Fields Modifier and Type Field Description static String
BPMN2_TYPE
protected Map<String,List<BPMN2SyntaxChecker.ValidationSyntaxError>>
errors
static String
PROCESS_TYPE
static String
SIMULATION_TYPE
-
Constructor Summary
Constructors Constructor Description BPMN2SyntaxChecker(String json, String preprocessingData, IDiagramProfile profile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkSyntax()
void
clearErrors()
boolean
errorsFound()
Map<String,List<BPMN2SyntaxChecker.ValidationSyntaxError>>
getErrors()
org.json.JSONObject
getErrorsAsJson()
boolean
isCompensatingFlowNodeInProcess(org.eclipse.bpmn2.FlowNode node, org.eclipse.bpmn2.Process process)
boolean
isCompensatingFlowNodeInSubprocess(org.eclipse.bpmn2.FlowNode node, org.eclipse.bpmn2.SubProcess subProcess)
-
-
-
Field Detail
-
BPMN2_TYPE
public static final String BPMN2_TYPE
- See Also:
- Constant Field Values
-
SIMULATION_TYPE
public static final String SIMULATION_TYPE
- See Also:
- Constant Field Values
-
PROCESS_TYPE
public static final String PROCESS_TYPE
- See Also:
- Constant Field Values
-
errors
protected Map<String,List<BPMN2SyntaxChecker.ValidationSyntaxError>> errors
-
-
Constructor Detail
-
BPMN2SyntaxChecker
public BPMN2SyntaxChecker(String json, String preprocessingData, IDiagramProfile profile)
-
-
Method Detail
-
checkSyntax
public void checkSyntax()
- Specified by:
checkSyntax
in interfaceSyntaxChecker
-
getErrors
public Map<String,List<BPMN2SyntaxChecker.ValidationSyntaxError>> getErrors()
- Specified by:
getErrors
in interfaceSyntaxChecker
-
getErrorsAsJson
public org.json.JSONObject getErrorsAsJson()
- Specified by:
getErrorsAsJson
in interfaceSyntaxChecker
-
errorsFound
public boolean errorsFound()
- Specified by:
errorsFound
in interfaceSyntaxChecker
-
clearErrors
public void clearErrors()
- Specified by:
clearErrors
in interfaceSyntaxChecker
-
isCompensatingFlowNodeInSubprocess
public boolean isCompensatingFlowNodeInSubprocess(org.eclipse.bpmn2.FlowNode node, org.eclipse.bpmn2.SubProcess subProcess)
-
isCompensatingFlowNodeInProcess
public boolean isCompensatingFlowNodeInProcess(org.eclipse.bpmn2.FlowNode node, org.eclipse.bpmn2.Process process)
-
-