Examples of findWorkItemById()


Examples of org.fireflow.engine.persistence.IPersistenceService.findWorkItemById()

        public Object doInWorkflowSession(RuntimeContext ctx)
            throws EngineException, KernelException {
          IPersistenceService persistenceService = ctx
              .getPersistenceService();

          return persistenceService.findWorkItemById(workItemId);
        }
      });
    } catch (EngineException ex) {
      ex.printStackTrace();
      return null;
View Full Code Here

Examples of org.fireflow.engine.persistence.IPersistenceService.findWorkItemById()

      String taskInstanceId) throws EngineException, KernelException {
    IPersistenceService persistenceService = rtCtx.getPersistenceService();

    persistenceService.lockTaskInstance(taskInstanceId);

    IWorkItem workItem = persistenceService.findWorkItemById(workItemId);

    if (workItem == null)
      return null;

    if (workItem.getState().intValue() != IWorkItem.INITIALIZED) {
View Full Code Here

Examples of org.fireflow.engine.persistence.IPersistenceService.findWorkItemById()

                    Logger.getLogger(FireWorkflowEngineTest.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
        });

        IWorkItem wi = persistenceService.findWorkItemById(paymentWorkItemId);
        assertEquals(new Integer(IWorkItem.COMPLETED), wi.getState());

        List tokensList = persistenceService.findTokensForProcessInstance(currentProcessInstance.getId(), null);
        assertNotNull(tokensList);
        assertEquals(1, tokensList.size());
View Full Code Here

Examples of org.fireflow.engine.persistence.IPersistenceService.findWorkItemById()

                    Logger.getLogger(FireWorkflowEngineTest.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
        });

        IWorkItem wi = persistenceService.findWorkItemById(paymentWorkItemId);
        assertEquals(new Integer(IWorkItem.COMPLETED), wi.getState());

        List tokensList = persistenceService.findTokensForProcessInstance(currentProcessInstance.getId(), null);
        assertNotNull(tokensList);
        assertEquals(1, tokensList.size());
View Full Code Here

Examples of org.fireflow.engine.persistence.IPersistenceService.findWorkItemById()

                return null;
            }
        });
        paymentWorkItemId = newWorkItem.getId();
       
        wi = persistenceService.findWorkItemById(paymentWorkItemId);
        assertEquals(new Integer(IWorkItem.RUNNING), wi.getState());

        tokensList = persistenceService.findTokensForProcessInstance(currentProcessInstance.getId(), null);
        assertNotNull(tokensList);
        assertEquals(1, tokensList.size());
View Full Code Here

Examples of org.fireflow.engine.persistence.IPersistenceService.findWorkItemById()

                    Logger.getLogger(FireWorkflowEngineTest.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
        });

        IWorkItem wi = persistenceService.findWorkItemById(paymentWorkItemId);
        assertEquals(new Integer(IWorkItem.COMPLETED), wi.getState());

        List tokensList = persistenceService.findTokensForProcessInstance(currentProcessInstance.getId(), null);
        assertNotNull(tokensList);
        assertEquals(1, tokensList.size());
View Full Code Here

Examples of org.fireflow.engine.persistence.IPersistenceService.findWorkItemById()

                return null;
            }
        });
        paymentWorkItemId = newWorkItem.getId();
       
        wi = persistenceService.findWorkItemById(paymentWorkItemId);
        assertEquals(new Integer(IWorkItem.RUNNING), wi.getState());

        tokensList = persistenceService.findTokensForProcessInstance(currentProcessInstance.getId(), null);
        assertNotNull(tokensList);
        assertEquals(1, tokensList.size());
View Full Code Here

Examples of org.fireflow.engine.persistence.IPersistenceService.findWorkItemById()

                    Logger.getLogger(FireWorkflowEngineTest.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
        });

        wi = persistenceService.findWorkItemById(paymentWorkItemId);
        assertEquals(new Integer(IWorkItem.COMPLETED), wi.getState());

        tokensList = persistenceService.findTokensForProcessInstance(currentProcessInstance.getId(), null);
        assertNotNull(tokensList);
        assertEquals(1, tokensList.size());
View Full Code Here

Examples of org.fireflow.engine.persistence.IPersistenceService.findWorkItemById()

                    Logger.getLogger(FireWorkflowEngineTest.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
        });

        IWorkItem wi = persistenceService.findWorkItemById(paymentWorkItemId);
        assertEquals(new Integer(IWorkItem.COMPLETED), wi.getState());

        List tokensList = persistenceService.findTokensForProcessInstance(currentProcessInstance.getId(), null);
        assertNotNull(tokensList);
        assertEquals(1, tokensList.size());
View Full Code Here

Examples of org.fireflow.engine.persistence.IPersistenceService.findWorkItemById()

                return null;
            }
        });
        paymentWorkItemId = newWorkItem.getId();
       
        wi = persistenceService.findWorkItemById(paymentWorkItemId);
        assertEquals(new Integer(IWorkItem.RUNNING), wi.getState());

        tokensList = persistenceService.findTokensForProcessInstance(currentProcessInstance.getId(), null);
        assertNotNull(tokensList);
        assertEquals(1, tokensList.size());
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.