public class Workflows extends AbstractImpl
Modifier and Type | Class and Description |
---|---|
static class |
Workflows.AsynchronousWorkflow
Abstract class for asynchronous workflows.
|
static class |
Workflows.EventType
EventType
|
static class |
Workflows.SynchronousWorkflow
Abstract class for synchronous workflows.
|
Modifier | Constructor and Description |
---|---|
protected |
Workflows()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
WfProcessInstance |
executeWorkflow(String name,
WorkflowTarget wfTarget,
WfProcess wfProcess,
org.openmdx.base.jmi1.ContextCapable targetObject,
Map<String,Boolean> booleanParams,
Map<String,String> stringParams,
Map<String,Integer> integerParams,
Map<String,BigDecimal> decimalParams,
Map<String,Date> dateTimeParams,
Map<String,org.openmdx.base.naming.Path> uriParams,
WfProcessInstance parentProcessInstance)
Execute the workflow.
|
Topic |
findTopic(String name,
Segment segment)
Find topic.
|
Topic |
findTopic(String name,
Segment segment,
javax.jdo.PersistenceManager pm)
Deprecated.
|
WfProcess |
findWfProcess(String name,
Segment segment)
Find process.
|
static Workflows.EventType |
getEventType(org.openmdx.base.jmi1.ContextCapable object)
Get event type for given object.
|
static Workflows |
getInstance()
Get instance of registered backend class.
|
Segment |
getWorkflowSegment(javax.jdo.PersistenceManager pm,
String providerName,
String segmentName)
Get workflow segment.
|
Topic |
initTopic(Segment workflowSegment,
String id,
String name,
String description,
String topicPathPattern,
WfProcess[] actions)
Init topic.
|
WfProcess |
initWorkflow(Segment workflowSegment,
String id,
String name,
String description,
Boolean isSynchronous,
Property[] properties)
Init workflow.
|
void |
initWorkflows(javax.jdo.PersistenceManager pm,
String providerName,
String segmentName)
Init standard workflows.
|
static void |
register()
Register backend class.
|
getInstance, getUidAsString, preDelete, preStore, registerImpl
public static final short STATUS_OK
public static final short STATUS_FAILED
public static final String PARAM_NAME_TRIGGERED_BY_EVENT_ID
public static final String PARAM_NAME_TRIGGERED_BY
public static final String PARAM_NAME_TRIGGERED_BY_EVENT_TYPE
public static final String WORKFLOW_EXPORT_MAIL
public static final String WORKFLOW_SEND_MAIL
public static final String WORKFLOW_SEND_MAIL_NOTIFICATION
public static final String WORKFLOW_SEND_ALERT
public static final String WORKFLOW_PRINT_CONSOLE
public static final String WORKFLOW_SEND_DIRECT_MESSAGE_TWITTER
public static final String WORKFLOW_SEND_MESSAGE_JABBER
public static final String WORKFLOW_BULK_ACTIVITY_FOLLOWUP
public static final String WORKFLOW_BULK_CREATE_ACTIVITY
public static final String TOPIC_NAME_ACCOUNT_MODIFICATIONS
public static final String TOPIC_NAME_ACTIVITY_FOLLOWUP_MODIFICATIONS
public static final String TOPIC_NAME_ACTIVITY_MODIFICATIONS
public static final String TOPIC_NAME_ALERT_MODIFICATIONS_EMAIL
public static final String TOPIC_NAME_ALERT_MODIFICATIONS_TWITTER
public static final String TOPIC_NAME_ALERT_MODIFICATIONS_JABBER
public static final String TOPIC_NAME_BOOKING_MODIFICATIONS
public static final String TOPIC_NAME_COMPETITOR_MODIFICATIONS
public static final String TOPIC_NAME_COMPOUND_BOOKING_MODIFICATIONS
public static final String TOPIC_NAME_INVOICE_MODIFICATIONS
public static final String TOPIC_NAME_LEAD_MODIFICATIONS
public static final String TOPIC_NAME_OPPORTUNITY_MODIFICATIONS
public static final String TOPIC_NAME_ORGANIZATION_MODIFICATIONS
public static final String TOPIC_NAME_PRODUCT_MODIFICATIONS
public static final String TOPIC_NAME_QUOTE_MODIFICATIONS
public static final String TOPIC_NAME_SALES_ORDER_MODIFICATIONS
public static final String TOPIC_NAME_TIMER_MODIFICATIONS
public static final String WORKFLOW_NAME_PRINT_CONSOLE
public static final String WORKFLOW_NAME_SEND_ALERT
public static final String WORKFLOW_NAME_EXPORT_MAIL
public static final String WORKFLOW_NAME_SEND_MAIL_NOTIFICATION
public static final String WORKFLOW_NAME_SEND_MAIL
public static final String WORKFLOW_NAME_SEND_MESSAGE_TWITTER
public static final String WORKFLOW_NAME_SEND_MESSAGE_JABBER
public static final String WORKFLOW_NAME_BULK_ACTIVITY_FOLLOWUP
public static final String WORKFLOW_NAME_BULK_CREATE_ACTIVITY
public static void register()
public static Workflows getInstance() throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public static Workflows.EventType getEventType(org.openmdx.base.jmi1.ContextCapable object)
object
- public Segment getWorkflowSegment(javax.jdo.PersistenceManager pm, String providerName, String segmentName)
pm
- providerName
- segmentName
- public Topic findTopic(String name, Segment segment, javax.jdo.PersistenceManager pm)
name
- segment
- pm
- public Topic findTopic(String name, Segment segment)
name
- segment
- pm
- public WfProcess findWfProcess(String name, Segment segment)
name
- segment
- pm
- public Topic initTopic(Segment workflowSegment, String id, String name, String description, String topicPathPattern, WfProcess[] actions)
workflowSegment
- id
- name
- description
- topicPathPattern
- actions
- public WfProcess initWorkflow(Segment workflowSegment, String id, String name, String description, Boolean isSynchronous, Property[] properties)
workflowSegment
- id
- name
- description
- isSynchronous
- properties
- public void initWorkflows(javax.jdo.PersistenceManager pm, String providerName, String segmentName) throws org.openmdx.base.exception.ServiceException
pm
- providerName
- segmentName
- org.openmdx.base.exception.ServiceException
public WfProcessInstance executeWorkflow(String name, WorkflowTarget wfTarget, WfProcess wfProcess, org.openmdx.base.jmi1.ContextCapable targetObject, Map<String,Boolean> booleanParams, Map<String,String> stringParams, Map<String,Integer> integerParams, Map<String,BigDecimal> decimalParams, Map<String,Date> dateTimeParams, Map<String,org.openmdx.base.naming.Path> uriParams, WfProcessInstance parentProcessInstance) throws org.openmdx.base.exception.ServiceException
name
- wfTarget
- wfProcess
- targetObject
- stringParams
- integerParams
- decimalParams
- booleanParams
- uriParams
- parentProcessInstance
- org.openmdx.base.exception.ServiceException
This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.