Package org.drools.marshalling.impl

Examples of org.drools.marshalling.impl.ProcessInstanceMarshaller


                MarshallerReaderContext context = new MarshallerReaderContext( bais,
                                                                               (InternalRuleBase) workingMemory.getRuleBase(),
                                                                               null,
                                                                               null );
                context.wm = (InternalWorkingMemory) workingMemory;
                ProcessInstanceMarshaller marshaller = getMarshallerFromContext( context );
                processInstance = marshaller.readProcessInstance( context,
                                                                  !externalVariables );
                if ( externalVariables ) {
                    restoreVariables();
                }
                context.close();
View Full Code Here


                                                                         null );
            String processType = ((ProcessInstanceImpl) processInstance).getProcess().getType();
            saveProcessInstanceType( context,
                                     processInstance,
                                     processType );
            ProcessInstanceMarshaller marshaller = ProcessMarshallerRegistry.INSTANCE.getMarshaller( processType );
            externalVariables = VariablePersistenceStrategyFactory.getVariablePersistenceStrategy().isEnabled();
            marshaller.writeProcessInstance( context,
                                             processInstance,
                                             !externalVariables );
            if ( externalVariables ) {
                variablesChanged = persistVariables();
            }
View Full Code Here

                ByteArrayInputStream bais = new ByteArrayInputStream(
                        processInstanceByteArray);
                MarshallerReaderContext context = new MarshallerReaderContext(
                        bais, (InternalRuleBase) workingMemory.getRuleBase(), null, null);
                context.wm = (InternalWorkingMemory) workingMemory;
                ProcessInstanceMarshaller marshaller = getMarshallerFromContext(context);
                processInstance = marshaller.readProcessInstance(context);
                context.close();
            } catch (IOException e) {
                e.printStackTrace();
                throw new IllegalArgumentException(
                        "IOException while loading process instance: "
View Full Code Here

            MarshallerWriteContext context = new MarshallerWriteContext(baos,
                    null, null, null, null);
            String processType = ((ProcessInstanceImpl) processInstance).getProcess()
                    .getType();
            saveProcessInstanceType(context, processInstance, processType);
            ProcessInstanceMarshaller marshaller = ProcessMarshallerRegistry.INSTANCE.getMarshaller(processType);
            marshaller.writeProcessInstance(
                    context, processInstance);
            context.close();
        } catch (IOException e) {
            throw new IllegalArgumentException(
                    "IOException while storing process instance "
View Full Code Here

            try {
                ByteArrayInputStream bais = new ByteArrayInputStream(
                        processInstanceByteArray);
                MarshallerReaderContext context = new MarshallerReaderContext(
                        bais, null, null, null);
                ProcessInstanceMarshaller marshaller = getMarshallerFromContext(context);
                processInstance = marshaller.readProcessInstance(context);
                context.close();
            } catch (IOException e) {
                e.printStackTrace();
                throw new IllegalArgumentException(
                        "IOException while loading process instance: "
View Full Code Here

            MarshallerWriteContext context = new MarshallerWriteContext(baos,
                    null, null, null, null);
            String processType = ((ProcessInstanceImpl) processInstance).getProcess()
                    .getType();
            saveProcessInstanceType(context, processInstance, processType);
            ProcessInstanceMarshaller marshaller = ProcessMarshallerRegistry.INSTANCE.getMarshaller(processType);
            marshaller.writeProcessInstance(
                    context, processInstance);
            context.close();
        } catch (IOException e) {
            throw new IllegalArgumentException(
                    "IOException while storing process instance "
View Full Code Here

          new ByteArrayInputStream(processInstanceByteArray);
                MarshallerReaderContext context = new MarshallerReaderContext(
          bais, (InternalRuleBase) workingMemory.getRuleBase(),
          null, null);
                context.wm = (InternalWorkingMemory) workingMemory;
                ProcessInstanceMarshaller marshaller = getMarshallerFromContext(context);
        processInstance = marshaller.readProcessInstance(context, !externalVariables);
        if (externalVariables) {
          restoreVariables();
        }
                context.close();
            } catch (IOException e) {
View Full Code Here

            MarshallerWriteContext context = new MarshallerWriteContext(baos,
                    null, null, null, null);
      String processType = ((ProcessInstanceImpl) processInstance)
          .getProcess().getType();
      saveProcessInstanceType(context, processInstance, processType);
      ProcessInstanceMarshaller marshaller = ProcessMarshallerRegistry.INSTANCE
        .getMarshaller(processType);
      externalVariables = VariablePersistenceStrategyFactory.getVariablePersistenceStrategy().isEnabled();
      marshaller.writeProcessInstance(context, processInstance, !externalVariables);
      if (externalVariables) {
        variablesChanged = persistVariables();
      }
            context.close();
        } catch (IOException e) {
View Full Code Here

TOP

Related Classes of org.drools.marshalling.impl.ProcessInstanceMarshaller

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.