Search in sources :

Example 16 with ProcessConfigurationImpl

use of org.wso2.carbon.bpel.core.ode.integration.store.ProcessConfigurationImpl in project carbon-business-process by wso2.

the class ProcessStoreImpl method onBPELPackageReload.

public void onBPELPackageReload(Integer tenantId, String duName, List<ProcessConfigurationImpl> pConfs) {
    CopyOnWriteArrayList<QName> pids = new CopyOnWriteArrayList<QName>();
    for (ProcessConf pConf : pConfs) {
        pids.add(pConf.getProcessId());
    }
    updateProcessAndDUMaps(tenantId, duName, pids, true);
    Collections.sort(pConfs, BY_DEPLOYEDDATE);
    for (ProcessConfigurationImpl processConfiguration : pConfs) {
        try {
            if (log.isDebugEnabled()) {
                log.debug("Firing state change event --" + processConfiguration.getState() + "--  for process conf " + processConfiguration.getPackage() + "located at " + processConfiguration.getAbsolutePathForBpelArchive());
            }
            fireStateChange(processConfiguration.getProcessId(), processConfiguration.getState(), duName);
        } catch (Exception e) {
            log.error("Error while firing state change event for process " + processConfiguration.getProcessId() + " in deployment unit " + duName + ".");
        }
    }
}
Also used : QName(javax.xml.namespace.QName) ProcessConf(org.apache.ode.bpel.iapi.ProcessConf) SQLException(java.sql.SQLException) RegistryException(org.wso2.carbon.registry.core.exceptions.RegistryException) ContextException(org.apache.ode.bpel.iapi.ContextException) CopyOnWriteArrayList(java.util.concurrent.CopyOnWriteArrayList)

Aggregations

ProcessConfigurationImpl (org.wso2.carbon.bpel.core.ode.integration.store.ProcessConfigurationImpl)9 QName (javax.xml.namespace.QName)8 ProcessConf (org.apache.ode.bpel.iapi.ProcessConf)5 WSDL11Endpoint (org.apache.ode.bpel.epr.WSDL11Endpoint)4 Map (java.util.Map)3 EndpointConfiguration (org.wso2.carbon.bpel.common.config.EndpointConfiguration)3 RegistryException (org.wso2.carbon.registry.core.exceptions.RegistryException)3 UnifiedEndpoint (org.wso2.carbon.unifiedendpoint.core.UnifiedEndpoint)3 File (java.io.File)2 SQLException (java.sql.SQLException)2 ParseException (java.text.ParseException)2 ArrayList (java.util.ArrayList)2 Set (java.util.Set)2 CopyOnWriteArrayList (java.util.concurrent.CopyOnWriteArrayList)2 AxisFault (org.apache.axis2.AxisFault)2 AxisService (org.apache.axis2.description.AxisService)2 ContextException (org.apache.ode.bpel.iapi.ContextException)2 ProcessManagementException (org.wso2.carbon.bpel.skeleton.ode.integration.mgt.services.ProcessManagementException)2 CleanUpListType (org.wso2.carbon.bpel.skeleton.ode.integration.mgt.services.types.CleanUpListType)2 CleanUpType (org.wso2.carbon.bpel.skeleton.ode.integration.mgt.services.types.CleanUpType)2