Examples of IWorkflowSessionCallback


Examples of org.fireflow.engine.IWorkflowSessionCallback

    if (wfProcess == null) {
      throw new RuntimeException(
          "Workflow process NOT found,id=[" + wfprocessId
              + "]");
    }
    IProcessInstance processInstance =  (IProcessInstance) this.execute(new IWorkflowSessionCallback() {

      public Object doInWorkflowSession(RuntimeContext ctx)
          throws EngineException, KernelException {

        ProcessInstance processInstance = new ProcessInstance();
View Full Code Here

Examples of org.fireflow.engine.IWorkflowSessionCallback

   * @see org.fireflow.engine.IWorkflowSession#findWorkItemById(java.lang.String)
   */
  public IWorkItem findWorkItemById(String id) {
    final String workItemId = id;
    try {
      return (IWorkItem) this.execute(new IWorkflowSessionCallback() {

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

Examples of org.fireflow.engine.IWorkflowSessionCallback

   * @see org.fireflow.engine.IWorkflowSession#findTaskInstanceById(java.lang.String)
   */
  public ITaskInstance findTaskInstanceById(String id) {
    final String taskInstanceId = id;
    try {
      return (ITaskInstance) this.execute(new IWorkflowSessionCallback() {

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

Examples of org.fireflow.engine.IWorkflowSessionCallback

   */
  @SuppressWarnings("unchecked")
  public List<IWorkItem> findMyTodoWorkItems(final String actorId) {
    List<IWorkItem> result = null;
    try {
      result = (List<IWorkItem>) this.execute(new IWorkflowSessionCallback() {

        public Object doInWorkflowSession(RuntimeContext ctx)
            throws EngineException, KernelException {
          return ctx.getPersistenceService().findTodoWorkItems(
              actorId);
View Full Code Here

Examples of org.fireflow.engine.IWorkflowSessionCallback

  @SuppressWarnings("unchecked")
  public List<IWorkItem> findMyTodoWorkItems(final String actorId,
      final String processInstanceId) {
    List<IWorkItem> result = null;
    try {
      result = (List<IWorkItem>) this.execute(new IWorkflowSessionCallback() {

        public Object doInWorkflowSession(RuntimeContext ctx)
            throws EngineException, KernelException {
          return ctx.getPersistenceService().findTodoWorkItems(
              actorId, processInstanceId);
View Full Code Here

Examples of org.fireflow.engine.IWorkflowSessionCallback

  @SuppressWarnings("unchecked")
  public List<IWorkItem> findMyTodoWorkItems(final String actorId,
      final String processId, final String taskId) {
    List<IWorkItem> result = null;
    try {
      result = (List<IWorkItem>) this.execute(new IWorkflowSessionCallback() {

        public Object doInWorkflowSession(RuntimeContext ctx)
            throws EngineException, KernelException {
          return ctx.getPersistenceService().findTodoWorkItems(
              actorId, processId, taskId);
View Full Code Here

Examples of org.fireflow.engine.IWorkflowSessionCallback

   * @see org.fireflow.engine.IWorkflowSession#findProcessInstanceById(java.lang.String)
   */
  public IProcessInstance findProcessInstanceById(final String id) {
    try {
      return (IProcessInstance) this
          .execute(new IWorkflowSessionCallback() {

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

Examples of org.fireflow.engine.IWorkflowSessionCallback

  @SuppressWarnings("unchecked")
  public List<IProcessInstance> findProcessInstancesByProcessId(
      final String processId) {
    try {
      return (List<IProcessInstance>) this
          .execute(new IWorkflowSessionCallback() {

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

Examples of org.fireflow.engine.IWorkflowSessionCallback

  @SuppressWarnings("unchecked")
  public List<IProcessInstance> findProcessInstancesByProcessIdAndVersion(
      final String processId, final Integer version) {
    try {
      return (List<IProcessInstance>) this
          .execute(new IWorkflowSessionCallback() {

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

Examples of org.fireflow.engine.IWorkflowSessionCallback

  @SuppressWarnings("unchecked")
  public List<ITaskInstance> findTaskInstancesForProcessInstance(
      final String processInstanceId, final String activityId) {
    try {
      return (List<ITaskInstance>) this
          .execute(new IWorkflowSessionCallback() {

            public Object doInWorkflowSession(RuntimeContext ctx)
                throws EngineException, KernelException {
              IPersistenceService persistenceService = ctx
                  .getPersistenceService();
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.