Exemplo n.º 1
0
 @Override
 public void convertXMLToModel(Element element, BaseElement baseElement) {
   super.convertXMLToModel(element, baseElement);
 }
Exemplo n.º 2
0
 @Override
 public void convertModelToXML(Element element, BaseElement baseElement) {
   super.convertModelToXML(element, baseElement);
 }
Exemplo n.º 3
0
  static {
    // events
    addConverter(
        EndEventXMLConverter.getXMLType(),
        EndEventXMLConverter.getBpmnElementType(),
        EndEventXMLConverter.class);
    addConverter(
        StartEventXMLConverter.getXMLType(),
        StartEventXMLConverter.getBpmnElementType(),
        StartEventXMLConverter.class);

    // tasks
    addConverter(
        BusinessRuleTaskXMLConverter.getXMLType(),
        BusinessRuleTaskXMLConverter.getBpmnElementType(),
        BusinessRuleTaskXMLConverter.class);
    addConverter(
        ManualTaskXMLConverter.getXMLType(),
        ManualTaskXMLConverter.getBpmnElementType(),
        ManualTaskXMLConverter.class);
    addConverter(
        ReceiveTaskXMLConverter.getXMLType(),
        ReceiveTaskXMLConverter.getBpmnElementType(),
        ReceiveTaskXMLConverter.class);
    addConverter(
        ScriptTaskXMLConverter.getXMLType(),
        ScriptTaskXMLConverter.getBpmnElementType(),
        ScriptTaskXMLConverter.class);
    addConverter(
        ServiceTaskXMLConverter.getXMLType(),
        ServiceTaskXMLConverter.getBpmnElementType(),
        ServiceTaskXMLConverter.class);
    addConverter(
        SendTaskXMLConverter.getXMLType(),
        SendTaskXMLConverter.getBpmnElementType(),
        SendTaskXMLConverter.class);
    addConverter(
        UserTaskXMLConverter.getXMLType(),
        UserTaskXMLConverter.getBpmnElementType(),
        UserTaskXMLConverter.class);
    addConverter(
        TaskXMLConverter.getXMLType(),
        TaskXMLConverter.getBpmnElementType(),
        TaskXMLConverter.class);
    addConverter(
        CallActivityXMLConverter.getXMLType(),
        CallActivityXMLConverter.getBpmnElementType(),
        CallActivityXMLConverter.class);

    // gateways
    addConverter(
        EventGatewayXMLConverter.getXMLType(),
        EventGatewayXMLConverter.getBpmnElementType(),
        EventGatewayXMLConverter.class);
    addConverter(
        ExclusiveGatewayXMLConverter.getXMLType(),
        ExclusiveGatewayXMLConverter.getBpmnElementType(),
        ExclusiveGatewayXMLConverter.class);
    addConverter(
        InclusiveGatewayXMLConverter.getXMLType(),
        InclusiveGatewayXMLConverter.getBpmnElementType(),
        InclusiveGatewayXMLConverter.class);
    addConverter(
        ParallelGatewayXMLConverter.getXMLType(),
        ParallelGatewayXMLConverter.getBpmnElementType(),
        ParallelGatewayXMLConverter.class);

    // connectors
    addConverter(
        SequenceFlowXMLConverter.getXMLType(),
        SequenceFlowXMLConverter.getBpmnElementType(),
        SequenceFlowXMLConverter.class);

    // catch, throw and boundary event
    addConverter(
        CatchEventXMLConverter.getXMLType(),
        CatchEventXMLConverter.getBpmnElementType(),
        CatchEventXMLConverter.class);
    addConverter(
        ThrowEventXMLConverter.getXMLType(),
        ThrowEventXMLConverter.getBpmnElementType(),
        ThrowEventXMLConverter.class);
    addConverter(
        BoundaryEventXMLConverter.getXMLType(),
        BoundaryEventXMLConverter.getBpmnElementType(),
        BoundaryEventXMLConverter.class);

    // artifacts
    addConverter(
        TextAnnotationXMLConverter.getXMLType(),
        TextAnnotationXMLConverter.getBpmnElementType(),
        TextAnnotationXMLConverter.class);
    addConverter(
        AssociationXMLConverter.getXMLType(),
        AssociationXMLConverter.getBpmnElementType(),
        AssociationXMLConverter.class);

    // Alfresco types
    addConverter(
        AlfrescoStartEventXMLConverter.getXMLType(),
        AlfrescoStartEventXMLConverter.getBpmnElementType(),
        AlfrescoStartEventXMLConverter.class);
    addConverter(
        AlfrescoUserTaskXMLConverter.getXMLType(),
        AlfrescoUserTaskXMLConverter.getBpmnElementType(),
        AlfrescoUserTaskXMLConverter.class);
  }