use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class InputSetImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(InputSet.class, BPMN_ELEMENT_INPUT_SET).namespaceUri(BPMN20_NS).extendsType(BaseElement.class).instanceProvider(new ModelTypeInstanceProvider<InputSet>() {
public InputSet newInstance(ModelTypeInstanceContext instanceContext) {
return new InputSetImpl(instanceContext);
}
});
nameAttribute = typeBuilder.stringAttribute("name").build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
dataInputDataInputRefsCollection = sequenceBuilder.elementCollection(DataInputRefs.class).idElementReferenceCollection(DataInput.class).build();
optionalInputRefsCollection = sequenceBuilder.elementCollection(OptionalInputRefs.class).idElementReferenceCollection(DataInput.class).build();
whileExecutingInputRefsCollection = sequenceBuilder.elementCollection(WhileExecutingInputRefs.class).idElementReferenceCollection(DataInput.class).build();
outputSetOutputSetRefsCollection = sequenceBuilder.elementCollection(OutputSetRefs.class).idElementReferenceCollection(OutputSet.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class ScriptTaskImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(ScriptTask.class, BPMN_ELEMENT_SCRIPT_TASK).namespaceUri(BPMN20_NS).extendsType(Task.class).instanceProvider(new ModelTypeInstanceProvider<ScriptTask>() {
public ScriptTask newInstance(ModelTypeInstanceContext instanceContext) {
return new ScriptTaskImpl(instanceContext);
}
});
scriptFormatAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_SCRIPT_FORMAT).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
scriptChild = sequenceBuilder.element(Script.class).build();
/**
* camunda extensions
*/
camundaResultVariableAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_RESULT_VARIABLE).namespace(CAMUNDA_NS).build();
camundaResourceAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_RESOURCE).namespace(CAMUNDA_NS).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class MessageEventDefinitionImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(MessageEventDefinition.class, BPMN_ELEMENT_MESSAGE_EVENT_DEFINITION).namespaceUri(BPMN20_NS).extendsType(EventDefinition.class).instanceProvider(new ModelElementTypeBuilder.ModelTypeInstanceProvider<MessageEventDefinition>() {
public MessageEventDefinition newInstance(ModelTypeInstanceContext instanceContext) {
return new MessageEventDefinitionImpl(instanceContext);
}
});
messageRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_MESSAGE_REF).qNameAttributeReference(Message.class).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
operationRefChild = sequenceBuilder.element(OperationRef.class).qNameElementReference(Operation.class).build();
/**
* camunda extensions
*/
camundaClassAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_CLASS).namespace(CAMUNDA_NS).build();
camundaDelegateExpressionAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_DELEGATE_EXPRESSION).namespace(CAMUNDA_NS).build();
camundaExpressionAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_EXPRESSION).namespace(CAMUNDA_NS).build();
camundaResultVariableAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_RESULT_VARIABLE).namespace(CAMUNDA_NS).build();
camundaTopicAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_TOPIC).namespace(CAMUNDA_NS).build();
camundaTypeAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_TYPE).namespace(CAMUNDA_NS).build();
camundaTaskPriorityAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_TASK_PRIORITY).namespace(CAMUNDA_NS).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class DataStoreReferenceImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(DataStoreReference.class, BPMN_ELEMENT_DATA_STORE_REFERENCE).namespaceUri(BPMN20_NS).extendsType(FlowElement.class).instanceProvider(new ModelElementTypeBuilder.ModelTypeInstanceProvider<DataStoreReference>() {
@Override
public DataStoreReference newInstance(ModelTypeInstanceContext instanceContext) {
return new DataStoreReferenceImpl(instanceContext);
}
});
itemSubjectRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_ITEM_SUBJECT_REF).qNameAttributeReference(ItemDefinition.class).build();
dataStoreRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_DATA_STORE_REF).idAttributeReference(DataStore.class).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
dataStateChild = sequenceBuilder.element(DataState.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class CamundaFormDataImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(CamundaFormData.class, CAMUNDA_ELEMENT_FORM_DATA).namespaceUri(BpmnModelConstants.CAMUNDA_NS).instanceProvider(new ModelTypeInstanceProvider<CamundaFormData>() {
public CamundaFormData newInstance(ModelTypeInstanceContext instanceContext) {
return new CamundaFormDataImpl(instanceContext);
}
});
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
camundaFormFieldCollection = sequenceBuilder.elementCollection(CamundaFormField.class).build();
typeBuilder.build();
}
Aggregations