All Downloads are FREE. Search and download functionalities are using the official Maven repository.

OSGI-INF.blueprint.workflow-context.xml Maven / Gradle / Ivy

<?xml version="1.0" encoding="us-ascii" ?>
<!--

    Licensed to the Austrian Association for Software Tool Integration (AASTI)
    under one or more contributor license agreements. See the NOTICE file
    distributed with this work for additional information regarding copyright
    ownership. The AASTI licenses this file to you under the Apache License,
    Version 2.0 (the "License"); you may not use this file except in compliance
    with the License. You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->

<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">

  <bean class="org.openengsb.core.workflow.internal.persistence.PersistenceRuleManager" id="ruleManager"
    init-method="init">
    <property name="persistenceManager" ref="persistenceManager" />
    <property name="bundleContext" ref="blueprintBundleContext" />
  </bean>

  <service interface="org.openengsb.core.api.workflow.RuleManager">
    <ref component-id="ruleManager" />
  </service>

  <service>
  <interfaces>
    <value>org.openengsb.core.api.workflow.WorkflowService</value>
    <value>org.openengsb.core.api.OpenEngSBService</value>
  </interfaces>
    <service-properties>
      <entry key="id" value="workflowService"/>
    </service-properties>
    <ref component-id="workflowService" />
  </service>

  <bean id="workflowService" class="org.openengsb.core.workflow.internal.WorkflowServiceImpl">
    <property name="rulemanager" ref="ruleManager" />
    <property name="bundleContext" ref="blueprintBundleContext" />
    <property name="taskbox" ref="taskbox" />
  </bean>

  <bean class="org.openengsb.core.workflow.internal.TaskboxConfigurator" init-method="init">
    <property name="ruleManager" ref="ruleManager" />
  </bean>
  
  <bean id="taskbox" class="org.openengsb.core.workflow.internal.TaskboxServiceImpl" init-method="init">
    <property name="workflowService" ref="workflowService" />
    <property name="persistenceManager" ref="persistenceManager" />
    <property name="bundleContext" ref="blueprintBundleContext" />
  </bean>

  <service interface="org.openengsb.core.api.workflow.TaskboxService">
    <service-properties>
      <entry key="openengsb.service.type" value="workflow-service" />
      <entry key="openengsb.workflow.globalid" value="taskbox" />
    </service-properties>
	 <ref component-id="taskbox" />
  </service>

  <service interface="org.openengsb.core.api.workflow.TaskboxServiceInternal">
    <service-properties>
      <entry key="openengsb.service.type" value="workflow-service" />
      <entry key="location.root">
        <array>
          <value>taskboxinternal</value>
        </array>
      </entry>
      <entry key="openengsb.workflow.globalid" value="taskboxinternal" />
    </service-properties>
    <bean class="org.openengsb.core.workflow.internal.TaskboxServiceInternalImpl" init-method="init">
      <property name="persistenceManager" ref="persistenceManager" />
      <property name="bundleContext" ref="blueprintBundleContext" />
    </bean>
  </service>

  <reference id="contextService" interface="org.openengsb.core.api.context.ContextCurrentService" />
  <reference id="persistenceManager" interface="org.openengsb.core.api.persistence.PersistenceManager" />

  <service interface="org.openengsb.core.api.workflow.EventRegistrationService">
    <bean class="org.openengsb.core.workflow.internal.RegistrationServiceImpl">
      <property name="ruleManager" ref="ruleManager" />
      <property name="instanceId" value="registrationService" />
    </bean>
  </service>
  
  <service interface="org.openengsb.core.api.workflow.WorkflowConverter">
    <bean class="org.openengsb.core.workflow.editor.converter.DroolsConverter"/>
  </service>
  
  <service interface="org.openengsb.core.api.workflow.WorkflowValidator">
    <bean class="org.openengsb.core.workflow.editor.validator.WorkflowValidatorImplementation"/>
  </service>

  <service interface="org.openengsb.core.api.persistence.ConfigPersistenceBackendService">
    <service-properties>
      <entry key="backend.id" value="workflow-persistence" />
    </service-properties>
    <bean class="org.openengsb.core.workflow.internal.persistence.WorkflowFilePersistenceBackendService">
      <argument>
        <bean class="org.openengsb.core.workflow.internal.persistence.WorkflowRepresentationConverter"></bean>
      </argument>
    </bean>
  </service>

</blueprint>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy