public class DynamoDBPersistenceService extends Object implements net.jworkflow.kernel.interfaces.PersistenceService
| Modifier and Type | Field and Description |
|---|---|
static String |
EVENT_TABLE |
static String |
SUBSCRIPTION_TABLE |
static String |
WORKFLOW_TABLE |
| Constructor and Description |
|---|
DynamoDBPersistenceService(software.amazon.awssdk.regions.Region region,
DynamoDBProvisioner provisioner,
String tablePrefix) |
| Modifier and Type | Method and Description |
|---|---|
String |
createEvent(net.jworkflow.kernel.models.Event newEvent) |
String |
createEventSubscription(net.jworkflow.kernel.models.EventSubscription subscription) |
String |
createNewWorkflow(net.jworkflow.kernel.models.WorkflowInstance workflow) |
net.jworkflow.kernel.models.Event |
getEvent(String id) |
Iterable<String> |
getEvents(String eventName,
String eventKey,
Date asOf) |
Iterable<String> |
getRunnableEvents() |
Iterable<String> |
getRunnableInstances() |
Iterable<net.jworkflow.kernel.models.EventSubscription> |
getSubcriptions(String eventName,
String eventKey,
Date asOf) |
net.jworkflow.kernel.models.WorkflowInstance |
getWorkflowInstance(String id) |
void |
markEventProcessed(String id) |
void |
markEventUnprocessed(String id) |
void |
persistWorkflow(net.jworkflow.kernel.models.WorkflowInstance workflow) |
void |
provisionStore() |
void |
terminateSubscription(String eventSubscriptionId) |
public static final String WORKFLOW_TABLE
public static final String SUBSCRIPTION_TABLE
public static final String EVENT_TABLE
public DynamoDBPersistenceService(software.amazon.awssdk.regions.Region region,
DynamoDBProvisioner provisioner,
String tablePrefix)
public String createNewWorkflow(net.jworkflow.kernel.models.WorkflowInstance workflow)
createNewWorkflow in interface net.jworkflow.kernel.interfaces.PersistenceServicepublic void persistWorkflow(net.jworkflow.kernel.models.WorkflowInstance workflow)
persistWorkflow in interface net.jworkflow.kernel.interfaces.PersistenceServicepublic Iterable<String> getRunnableInstances()
getRunnableInstances in interface net.jworkflow.kernel.interfaces.PersistenceServicepublic net.jworkflow.kernel.models.WorkflowInstance getWorkflowInstance(String id)
getWorkflowInstance in interface net.jworkflow.kernel.interfaces.PersistenceServicepublic String createEventSubscription(net.jworkflow.kernel.models.EventSubscription subscription)
createEventSubscription in interface net.jworkflow.kernel.interfaces.PersistenceServicepublic Iterable<net.jworkflow.kernel.models.EventSubscription> getSubcriptions(String eventName, String eventKey, Date asOf)
getSubcriptions in interface net.jworkflow.kernel.interfaces.PersistenceServicepublic void terminateSubscription(String eventSubscriptionId)
terminateSubscription in interface net.jworkflow.kernel.interfaces.PersistenceServicepublic String createEvent(net.jworkflow.kernel.models.Event newEvent)
createEvent in interface net.jworkflow.kernel.interfaces.PersistenceServicepublic net.jworkflow.kernel.models.Event getEvent(String id)
getEvent in interface net.jworkflow.kernel.interfaces.PersistenceServicepublic Iterable<String> getRunnableEvents()
getRunnableEvents in interface net.jworkflow.kernel.interfaces.PersistenceServicepublic Iterable<String> getEvents(String eventName, String eventKey, Date asOf)
getEvents in interface net.jworkflow.kernel.interfaces.PersistenceServicepublic void markEventProcessed(String id)
markEventProcessed in interface net.jworkflow.kernel.interfaces.PersistenceServicepublic void markEventUnprocessed(String id)
markEventUnprocessed in interface net.jworkflow.kernel.interfaces.PersistenceServicepublic void provisionStore()
provisionStore in interface net.jworkflow.kernel.interfaces.PersistenceServiceCopyright © 2021. All rights reserved.