Package java.io

Examples of java.io.ObjectInputStream.readInt()


        workItem.setProcessInstanceId( stream.readLong() );
        workItem.setName( stream.readUTF() );
        workItem.setState( stream.readInt() );

        //WorkItem Paramaters
        int nbVariables = stream.readInt();
        if (nbVariables > 0) {

            for (int i = 0; i < nbVariables; i++) {
                String name = stream.readUTF();
                try {
View Full Code Here


        if (nbVariables > 0) {

            for (int i = 0; i < nbVariables; i++) {
                String name = stream.readUTF();
                try {
                    int index = stream.readInt();
                    ObjectMarshallingStrategy strategy = null;
                    // Old way of retrieving strategy objects
                    if (index >= 0) {
                        strategy = context.resolverStrategyFactory.getStrategy( index );
                        if (strategy == null) {
View Full Code Here

                            bytes,
                            pubKeyAlias );
        }

        ObjectInputStream in = new ObjectInputStream( new ByteArrayInputStream( bytes ) );
        for (int i = 0, length = in.readInt(); i < length; i++) {
            this.store.put( (String) in.readObject(),
                            (byte[]) in.readObject() );
        }
        in.close();
View Full Code Here

            return new DummyDataRestore();
         }

         in = new ObjectInputStream(PrivilegedFileHelper.fileInputStream(contentFile));

         int count = in.readInt();
         for (int i = 0; i < count; i++)
         {
            LockData lockData = new LockData();
            lockData.readExternal(in);
View Full Code Here

    String processId = stream.readUTF();
    processInstance.setProcessId(processId);
    if (ruleBase != null) {
      processInstance.setProcess(ruleBase.getProcess(processId));
    }
    processInstance.setState(stream.readInt());
    long nodeInstanceCounter = stream.readLong();
    processInstance.setWorkingMemory(wm);

    int nbVariables = stream.readInt();
    if (nbVariables > 0) {
View Full Code Here

    }
    processInstance.setState(stream.readInt());
    long nodeInstanceCounter = stream.readLong();
    processInstance.setWorkingMemory(wm);

    int nbVariables = stream.readInt();
    if (nbVariables > 0) {
      VariableScopeInstance variableScopeInstance = (VariableScopeInstance) processInstance
          .getContextInstance(VariableScope.VARIABLE_SCOPE);
      for (int i = 0; i < nbVariables; i++) {
        String name = stream.readUTF();
View Full Code Here

              "Could not reload variable " + name);
        }
      }
    }

    int nbSwimlanes = stream.readInt();
    if (nbSwimlanes > 0) {
      SwimlaneContextInstance swimlaneContextInstance = (SwimlaneContextInstance) processInstance
          .getContextInstance(SwimlaneContext.SWIMLANE_SCOPE);
      for (int i = 0; i < nbSwimlanes; i++) {
        String name = stream.readUTF();
View Full Code Here

        String processId = stream.readUTF();
        processInstance.setProcessId( processId );
        if ( ruleBase != null ) {
            processInstance.setProcess( ruleBase.getProcess( processId ) );
        }
        processInstance.setState( stream.readInt() );
        long nodeInstanceCounter = stream.readLong();
        processInstance.setWorkingMemory( wm );

        int nbVariables = stream.readInt();
        if ( nbVariables > 0 ) {
View Full Code Here

        }
        processInstance.setState( stream.readInt() );
        long nodeInstanceCounter = stream.readLong();
        processInstance.setWorkingMemory( wm );

        int nbVariables = stream.readInt();
        if ( nbVariables > 0 ) {
            VariableScopeInstance variableScopeInstance = (VariableScopeInstance) processInstance.getContextInstance( VariableScope.VARIABLE_SCOPE );
            for ( int i = 0; i < nbVariables; i++ ) {
                String name = stream.readUTF();
                try {
View Full Code Here

                    throw new IllegalArgumentException( "Could not reload variable " + name );
                }
            }
        }

        int nbSwimlanes = stream.readInt();
        if ( nbSwimlanes > 0 ) {
            SwimlaneContextInstance swimlaneContextInstance = (SwimlaneContextInstance) processInstance.getContextInstance( SwimlaneContext.SWIMLANE_SCOPE );
            for ( int i = 0; i < nbSwimlanes; i++ ) {
                String name = stream.readUTF();
                String value = stream.readUTF();
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.