IContextPortation¶
-
interface
OCP\WorkflowEngine\EntityContext\
IContextPortation
¶ - Interface IContextPortationOccasionally an IEntity needs to be reused not in the same, but a newrequest. As IEntities receive custom context information during a flowcycle, sometimes it might be necessary to export context identifiers tobe able to recreate the state at a later point. For example: handlingtranslations in a notification INotifier.
Source: lib/public/WorkflowEngine/EntityContext/IContextPortation.php#41
Methods¶
-
public
OCP\WorkflowEngine\EntityContext\IContextPortation::
exportContextIDs
()¶ - All relevant context identifiers that are needed to restore the stateof an entity shall be returned with this method. The resulting arraymust be JSON-serializable.
Source: lib/public/WorkflowEngine/EntityContext/IContextPortation.php#50 Since: 20.0.0
-
public
OCP\WorkflowEngine\EntityContext\IContextPortation::
importContextIDs
($contextIDs)¶ - This method receives the array as returned by `exportContextIDs()` inorder to restore the state of the IEntity if necessary.
Source: lib/public/WorkflowEngine/EntityContext/IContextPortation.php#58 Since: 20.0.0