Package io.iworkflow.core
Annotation Interface RPC
This is for annotating an RPC method for an implementation of
ObjectWorkflow
The method must be in the form of one of RpcDefinitions
An RPC implementation can call any APIs to update external systems directly.
However, it can also trigger some state execution (using Communication
API)
to update in the background to ensure the consistency across systems.-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionboolean
Only used when workflow has enabledPersistenceOptions
CachingPersistenceByMemo By default, it's false for high throughput support flip to true to bypass the caching for strong consistent readsString[]
String[]
String[]
String[]
int
-
Element Details
-
timeoutSeconds
int timeoutSeconds- Default:
- 0
-
dataAttributesLoadingType
PersistenceLoadingType dataAttributesLoadingType- Default:
- ALL_WITHOUT_LOCKING
-
dataAttributesPartialLoadingKeys
String[] dataAttributesPartialLoadingKeys- Default:
- {}
-
dataAttributesLockingKeys
String[] dataAttributesLockingKeys- Default:
- {}
-
searchAttributesLoadingType
PersistenceLoadingType searchAttributesLoadingType- Default:
- ALL_WITHOUT_LOCKING
-
searchAttributesPartialLoadingKeys
String[] searchAttributesPartialLoadingKeys- Default:
- {}
-
searchAttributesLockingKeys
String[] searchAttributesLockingKeys- Default:
- {}
-
bypassCachingForStrongConsistency
boolean bypassCachingForStrongConsistencyOnly used when workflow has enabledPersistenceOptions
CachingPersistenceByMemo By default, it's false for high throughput support flip to true to bypass the caching for strong consistent reads- Default:
- false
-