|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.model.bpmn.Bpmn
public class Bpmn
Provides access to the camunda BPMN model api.
| Field Summary | |
|---|---|
static Bpmn |
INSTANCE
the singleton instance of Bpmn. |
| Constructor Summary | |
|---|---|
protected |
Bpmn()
Register known types of the BPMN model |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static Bpmn INSTANCE
Bpmn. If you want to customize the behavior of Bpmn,
replace this instance with an instance of a custom subclass of Bpmn.
| Constructor Detail |
|---|
protected Bpmn()
| Method Detail |
|---|
public static BpmnModelInstance readModelFromFile(File file)
BpmnModelInstance from a File.
file - the File to read the BpmnModelInstance from
BpmnModelException - if the model cannot be readpublic static BpmnModelInstance readModelFromStream(InputStream stream)
BpmnModelInstance from an InputStream
stream - the InputStream to read the BpmnModelInstance from
org.camunda.bpm.model.xml.ModelParseException - if the model cannot be read
public static void writeModelToFile(File file,
BpmnModelInstance modelInstance)
BpmnModelInstance to a File. It will be
validated before writing.
file - the File to write the BpmnModelInstance tomodelInstance - the BpmnModelInstance to write
BpmnModelException - if the model cannot be written
org.camunda.bpm.model.xml.ModelValidationException - if the model is not valid
public static void writeModelToStream(OutputStream stream,
BpmnModelInstance modelInstance)
BpmnModelInstance to an OutputStream. It will be
validated before writing.
stream - the OutputStream to write the BpmnModelInstance tomodelInstance - the BpmnModelInstance to write
org.camunda.bpm.model.xml.ModelException - if the model cannot be written
org.camunda.bpm.model.xml.ModelValidationException - if the model is not validpublic static String convertToString(BpmnModelInstance modelInstance)
BpmnModelInstance to an String. It will
be validated before conversion.
modelInstance - the model instance to convert
public static void validateModel(BpmnModelInstance modelInstance)
modelInstance - the BpmnModelInstance to validate
org.camunda.bpm.model.xml.ModelValidationException - if the model is not validpublic static BpmnModelInstance createEmptyModel()
BpmnModelInstance.
public static ProcessBuilder createProcess()
public static ProcessBuilder createProcess(String processId)
public static ProcessBuilder createExecutableProcess()
public static ProcessBuilder createExecutableProcess(String processId)
protected BpmnModelInstance doReadModelFromFile(File file)
protected BpmnModelInstance doReadModelFromInputStream(InputStream is)
protected void doWriteModelToFile(File file,
BpmnModelInstance modelInstance)
protected void doWriteModelToOutputStream(OutputStream os,
BpmnModelInstance modelInstance)
protected String doConvertToString(BpmnModelInstance modelInstance)
protected void doValidateModel(BpmnModelInstance modelInstance)
protected BpmnModelInstance doCreateEmptyModel()
protected void doRegisterTypes(org.camunda.bpm.model.xml.ModelBuilder bpmnModelBuilder)
public org.camunda.bpm.model.xml.Model getBpmnModel()
Model instance to usepublic org.camunda.bpm.model.xml.ModelBuilder getBpmnModelBuilder()
public void setBpmnModel(org.camunda.bpm.model.xml.Model bpmnModel)
bpmnModel - the bpmnModel to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||