Examples of ProcessInstanceMarshaller


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

Examples of org.drools.marshalling.impl.ProcessInstanceMarshaller

                                                                         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

Examples of org.drools.marshalling.impl.ProcessInstanceMarshaller

                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

Examples of org.drools.marshalling.impl.ProcessInstanceMarshaller

            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

Examples of org.drools.marshalling.impl.ProcessInstanceMarshaller

            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

Examples of org.drools.marshalling.impl.ProcessInstanceMarshaller

            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

Examples of org.drools.marshalling.impl.ProcessInstanceMarshaller

          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

Examples of org.drools.marshalling.impl.ProcessInstanceMarshaller

            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

Examples of org.jbpm.marshalling.impl.ProcessInstanceMarshaller

                                                                               (InternalRuleBase) ((InternalKnowledgeBase) kruntime.getKnowledgeBase()).getRuleBase(),
                                                                               null,
                                                                               null,
                                                                               this.env
                                                                              );
                ProcessInstanceMarshaller marshaller = getMarshallerFromContext( context );
                context.wm = ((StatefulKnowledgeSessionImpl) kruntime).getInternalWorkingMemory();
                processInstance = marshaller.readProcessInstance(context);
                context.close();
            } catch ( IOException e ) {
                e.printStackTrace();
                throw new IllegalArgumentException( "IOException while loading process instance: " + e.getMessage(),
                                                    e );
View Full Code Here

Examples of org.jbpm.marshalling.impl.ProcessInstanceMarshaller

                                                                         this.env );
            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 " + processInstance.getId() + ": " + e.getMessage() );
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.