Package com.dotmarketing.portlets.workflows.model

Examples of com.dotmarketing.portlets.workflows.model.WorkflowActionFailureException


      Role assignedTo = null;

      assignedTo = processor.getNextAssign();
      if (assignedTo == null) {
        throw new WorkflowActionFailureException("Next assign does not exist");
      }

      // add the next assign if a user
      Set<String> recipients = new HashSet<String>();
      try {
View Full Code Here


        HttpServletRequest request = ctx.getHttpServletRequest();
      User user=null;
        try {
            user = uWebAPI.getLoggedInUser(request);
        } catch (Exception exx) {
            throw new WorkflowActionFailureException(exx.getMessage());
        }
    Contentlet con = processor.getContentlet();
       
    List<InvalidLink> httpResponse=null;
        try {
            httpResponse = APILocator.getLinkCheckerAPI().findInvalidLinks(con);
        } catch (Exception e1) {
            Logger.error(this, e1.getMessage(), e1);
            throw new WorkflowActionFailureException(e1.getMessage());
        }
   
    //if there are unreachable URL...
    if(httpResponse.size()>0){
        String msg="";
            try {
                msg = LanguageUtil.get(user, "checkURL.errorBrokenLinks");
            } catch (Exception e) {
               
            }
      throw new WorkflowActionFailureException(LinkCheckerUtil.buildPopupMsgWithLinksList(msg, httpResponse));
    }
  }
View Full Code Here

     
      APILocator.getContentletAPI().publish(processor.getContentlet(), processor.getUser(), false);

    } catch (Exception e) {
      Logger.error(PublishContentActionlet.class,e.getMessage(),e);
      throw new  WorkflowActionFailureException(e.getMessage());
   
    }

  }
View Full Code Here

    try {

      APILocator.getContentletAPI().unlock(processor.getContentlet(), processor.getUser(), true);
    } catch (Exception e) {
      Logger.error(this.getClass(),e.getMessage(),e);
      throw new  WorkflowActionFailureException(e.getMessage());
   
    }

  }
View Full Code Here

    try {

      APILocator.getContentletAPI().lock(processor.getContentlet(), processor.getUser(), true);
    } catch (Exception e) {
      Logger.error(this.getClass(),e.getMessage(),e);
      throw new  WorkflowActionFailureException(e.getMessage());
   
    }

  }
View Full Code Here

            APILocator.getContentletAPI().delete(processor.getContentlet(), processor.getUser(), false);
            processor.setTask(null);
            processor.setContentlet(null);
        } catch (Exception e) {
            Logger.error(this.getClass(),e.getMessage(),e);
            throw new  WorkflowActionFailureException(e.getMessage());
       
        }
    }
View Full Code Here

      }
     
    } catch (Exception e) {
      Logger.error(TwitterActionlet.class,e.getMessage());
      throw new  WorkflowActionFailureException(e.getMessage());
   
    }
   
   
View Full Code Here

              APILocator.getBundleAPI().saveBundle(bundle, envsToSendTo);
        publisherAPI.addContentsToUnpublish(identifiers, bundle.getId(), expireDate, processor.getUser());
      }
    } catch (DotPublisherException e) {
      Logger.debug(PushPublishActionlet.class, e.getMessage());
      throw new  WorkflowActionFailureException(e.getMessage());
    } catch (ParseException e){
      Logger.debug(PushPublishActionlet.class, e.getMessage());
      throw new  WorkflowActionFailureException(e.getMessage());
    } catch (DotDataException e) {
      Logger.debug(PushPublishActionlet.class, e.getMessage());
      throw new  WorkflowActionFailureException(e.getMessage());
    }

  }
View Full Code Here

      APILocator.getContentletAPI().unarchive(processor.getContentlet(), processor.getUser(), false);

    } catch (Exception e) {
      Logger.error(this.getClass(),e.getMessage(),e);
      throw new  WorkflowActionFailureException(e.getMessage());
   
    }

  }
View Full Code Here

      APILocator.getContentletAPI().archive(processor.getContentlet(), processor.getUser(), false);

    } catch (Exception e) {
      Logger.error(this.getClass(),e.getMessage(),e);
      throw new  WorkflowActionFailureException(e.getMessage());
    }
  }
View Full Code Here

TOP

Related Classes of com.dotmarketing.portlets.workflows.model.WorkflowActionFailureException

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.