org.opencrx.kernel.backend
Class Workflows

java.lang.Object
  extended by org.opencrx.kernel.backend.AbstractImpl
      extended by org.opencrx.kernel.backend.Workflows

public class Workflows
extends AbstractImpl


Field Summary
static short STATUS_FAILED
           
static short STATUS_OK
           
static String TOPIC_NAME_ACCOUNT_MODIFICATIONS
           
static String TOPIC_NAME_ACTIVITY_FOLLOWUP_MODIFICATIONS
           
static String TOPIC_NAME_ACTIVITY_MODIFICATIONS
           
static String TOPIC_NAME_ALERT_MODIFICATIONS
           
static String TOPIC_NAME_BOOKING_MODIFICATIONS
           
static String TOPIC_NAME_COMPETITOR_MODIFICATIONS
           
static String TOPIC_NAME_COMPOUND_BOOKING_MODIFICATIONS
           
static String TOPIC_NAME_INVOICE_MODIFICATIONS
           
static String TOPIC_NAME_LEAD_MODIFICATIONS
           
static String TOPIC_NAME_OPPORTUNITY_MODIFICATIONS
           
static String TOPIC_NAME_ORGANIZATION_MODIFICATIONS
           
static String TOPIC_NAME_PRODUCT_MODIFICATIONS
           
static String TOPIC_NAME_QUOTE_MODIFICATIONS
           
static String TOPIC_NAME_SALES_ORDER_MODIFICATIONS
           
static String WORKFLOW_EXPORT_MAIL
           
static String WORKFLOW_NAME_EXPORT_MAIL
           
static String WORKFLOW_NAME_PRINT_CONSOLE
           
static String WORKFLOW_NAME_SEND_ALERT
           
static String WORKFLOW_NAME_SEND_MAIL
           
static String WORKFLOW_NAME_SEND_MAIL_NOTIFICATION
           
static String WORKFLOW_PRINT_CONSOLE
           
static String WORKFLOW_SEND_ALERT
           
static String WORKFLOW_SEND_MAIL
           
static String WORKFLOW_SEND_MAIL_NOTIFICATION
           
 
Constructor Summary
protected Workflows()
           
 
Method Summary
 WfProcessInstance executeWorkflow(WorkflowTarget wfTarget, WfProcess wfProcess, ContextCapable targetObject, String targetObjectXri, String triggeredByEventId, Subscription triggeredBySubscription, Integer triggeredByEventType)
           
 Topic findTopic(String name, Segment segment, javax.jdo.PersistenceManager pm)
           
 WfProcess findWfProcess(String name, Segment segment, javax.jdo.PersistenceManager pm)
           
static Workflows getInstance()
           
 Segment getWorkflowSegment(javax.jdo.PersistenceManager pm, String providerName, String segmentName)
           
 Topic initTopic(javax.jdo.PersistenceManager pm, Workflow1Package workflowPackage, Segment workflowSegment, String id, String name, String description, String topicPathPattern, WfProcess[] actions)
           
 WfProcess initWorkflow(javax.jdo.PersistenceManager pm, Workflow1Package workflowPackage, Segment workflowSegment, String id, String name, String description, Boolean isSynchronous, Property[] properties)
           
 void initWorkflows(javax.jdo.PersistenceManager pm, String providerName, String segmentName)
           
static void register()
           
 
Methods inherited from class org.opencrx.kernel.backend.AbstractImpl
getInstance, getUidAsString, registerImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATUS_OK

public static final short STATUS_OK
See Also:
Constant Field Values

STATUS_FAILED

public static final short STATUS_FAILED
See Also:
Constant Field Values

WORKFLOW_EXPORT_MAIL

public static final String WORKFLOW_EXPORT_MAIL
See Also:
Constant Field Values

WORKFLOW_SEND_MAIL

public static final String WORKFLOW_SEND_MAIL
See Also:
Constant Field Values

WORKFLOW_SEND_MAIL_NOTIFICATION

public static final String WORKFLOW_SEND_MAIL_NOTIFICATION
See Also:
Constant Field Values

WORKFLOW_SEND_ALERT

public static final String WORKFLOW_SEND_ALERT
See Also:
Constant Field Values

WORKFLOW_PRINT_CONSOLE

public static final String WORKFLOW_PRINT_CONSOLE
See Also:
Constant Field Values

TOPIC_NAME_ACCOUNT_MODIFICATIONS

public static final String TOPIC_NAME_ACCOUNT_MODIFICATIONS
See Also:
Constant Field Values

TOPIC_NAME_ACTIVITY_FOLLOWUP_MODIFICATIONS

public static final String TOPIC_NAME_ACTIVITY_FOLLOWUP_MODIFICATIONS
See Also:
Constant Field Values

TOPIC_NAME_ACTIVITY_MODIFICATIONS

public static final String TOPIC_NAME_ACTIVITY_MODIFICATIONS
See Also:
Constant Field Values

TOPIC_NAME_ALERT_MODIFICATIONS

public static final String TOPIC_NAME_ALERT_MODIFICATIONS
See Also:
Constant Field Values

TOPIC_NAME_BOOKING_MODIFICATIONS

public static final String TOPIC_NAME_BOOKING_MODIFICATIONS
See Also:
Constant Field Values

TOPIC_NAME_COMPETITOR_MODIFICATIONS

public static final String TOPIC_NAME_COMPETITOR_MODIFICATIONS
See Also:
Constant Field Values

TOPIC_NAME_COMPOUND_BOOKING_MODIFICATIONS

public static final String TOPIC_NAME_COMPOUND_BOOKING_MODIFICATIONS
See Also:
Constant Field Values

TOPIC_NAME_INVOICE_MODIFICATIONS

public static final String TOPIC_NAME_INVOICE_MODIFICATIONS
See Also:
Constant Field Values

TOPIC_NAME_LEAD_MODIFICATIONS

public static final String TOPIC_NAME_LEAD_MODIFICATIONS
See Also:
Constant Field Values

TOPIC_NAME_OPPORTUNITY_MODIFICATIONS

public static final String TOPIC_NAME_OPPORTUNITY_MODIFICATIONS
See Also:
Constant Field Values

TOPIC_NAME_ORGANIZATION_MODIFICATIONS

public static final String TOPIC_NAME_ORGANIZATION_MODIFICATIONS
See Also:
Constant Field Values

TOPIC_NAME_PRODUCT_MODIFICATIONS

public static final String TOPIC_NAME_PRODUCT_MODIFICATIONS
See Also:
Constant Field Values

TOPIC_NAME_QUOTE_MODIFICATIONS

public static final String TOPIC_NAME_QUOTE_MODIFICATIONS
See Also:
Constant Field Values

TOPIC_NAME_SALES_ORDER_MODIFICATIONS

public static final String TOPIC_NAME_SALES_ORDER_MODIFICATIONS
See Also:
Constant Field Values

WORKFLOW_NAME_PRINT_CONSOLE

public static final String WORKFLOW_NAME_PRINT_CONSOLE
See Also:
Constant Field Values

WORKFLOW_NAME_SEND_ALERT

public static final String WORKFLOW_NAME_SEND_ALERT
See Also:
Constant Field Values

WORKFLOW_NAME_EXPORT_MAIL

public static final String WORKFLOW_NAME_EXPORT_MAIL
See Also:
Constant Field Values

WORKFLOW_NAME_SEND_MAIL_NOTIFICATION

public static final String WORKFLOW_NAME_SEND_MAIL_NOTIFICATION
See Also:
Constant Field Values

WORKFLOW_NAME_SEND_MAIL

public static final String WORKFLOW_NAME_SEND_MAIL
See Also:
Constant Field Values
Constructor Detail

Workflows

protected Workflows()
Method Detail

register

public static void register()

getInstance

public static Workflows getInstance()
                             throws ServiceException
Throws:
ServiceException

getWorkflowSegment

public Segment getWorkflowSegment(javax.jdo.PersistenceManager pm,
                                  String providerName,
                                  String segmentName)

findTopic

public Topic findTopic(String name,
                       Segment segment,
                       javax.jdo.PersistenceManager pm)

findWfProcess

public WfProcess findWfProcess(String name,
                               Segment segment,
                               javax.jdo.PersistenceManager pm)

initTopic

public Topic initTopic(javax.jdo.PersistenceManager pm,
                       Workflow1Package workflowPackage,
                       Segment workflowSegment,
                       String id,
                       String name,
                       String description,
                       String topicPathPattern,
                       WfProcess[] actions)

initWorkflow

public WfProcess initWorkflow(javax.jdo.PersistenceManager pm,
                              Workflow1Package workflowPackage,
                              Segment workflowSegment,
                              String id,
                              String name,
                              String description,
                              Boolean isSynchronous,
                              Property[] properties)

initWorkflows

public void initWorkflows(javax.jdo.PersistenceManager pm,
                          String providerName,
                          String segmentName)
                   throws ServiceException
Throws:
ServiceException

executeWorkflow

public WfProcessInstance executeWorkflow(WorkflowTarget wfTarget,
                                         WfProcess wfProcess,
                                         ContextCapable targetObject,
                                         String targetObjectXri,
                                         String triggeredByEventId,
                                         Subscription triggeredBySubscription,
                                         Integer triggeredByEventType)
                                  throws ServiceException
Throws:
ServiceException


This software is published under the BSD license. Copyright © 2003-2009, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.