Class WorkflowProcessor

  • All Implemented Interfaces:
    Runnable

    public class WorkflowProcessor
    extends AdempiereServer
    Workflow Processor
    Version:
    $Id: WorkflowProcessor.java,v 1.4 2006/07/30 00:53:33 jjanke Exp $
    Author:
    Jorg Janke
    • Constructor Detail

      • WorkflowProcessor

        public WorkflowProcessor​(MWorkflowProcessor model)
        WorkflowProcessor
        Parameters:
        model - model
    • Method Detail

      • wakeup

        protected void wakeup()
        Continue Workflow After Sleep
      • dynamicPriority

        protected void dynamicPriority()
        Set/Increase Priority dynamically
      • sendAlerts

        protected void sendAlerts()
        Send Alerts
      • sendEmail

        protected int sendEmail​(MWFActivity activity,
                                String AD_Message,
                                boolean toProcess,
                                boolean toSupervisor)
        Send Alert EMail
        Parameters:
        activity - activity
        AD_Message - message
        toProcess - true if to process owner
        toSupervisor - true if to Supervisor
        Returns:
        number of mails sent
      • sendAlertToResponsible

        protected int sendAlertToResponsible​(MWFResponsible responsible,
                                             ArrayList<Integer> list,
                                             MWFProcess process,
                                             String subject,
                                             String message,
                                             File pdf)
        Send Alert To Responsible
        Parameters:
        responsible - responsible
        list - list of already sent users
        process - process
        subject - subject
        message - message
        pdf - optional pdf
        Returns:
        number of mail sent