Class WorkflowProcessor

java.lang.Object
org.compiere.server.AdempiereServer
org.compiere.server.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
  • Field Details

  • Constructor Details

    • WorkflowProcessor

      public WorkflowProcessor(MWorkflowProcessor model)
      WorkflowProcessor
      Parameters:
      model - model
  • Method Details

    • doWork

      protected void doWork()
      Work
      Specified by:
      doWork in class AdempiereServer
    • 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
    • getServerInfo

      public String getServerInfo()
      Get Server Info
      Specified by:
      getServerInfo in class AdempiereServer
      Returns:
      info