pub enum StartBehaviour {
OpensNewCase,
ResumesOpenCase,
}Expand description
What starting this workflow means when the account already has a case of it.
StartWorkflow is the runtime’s own door: no catalogue entry, no target. What
start means differs by workflow: a second trip is ordinary, a second profile of the
same traveler is not, and only the domain knows which.
Under ResumesOpenCase the act reaches the case
the turn can already see. Seeing one it resolves to it, so compile_act
will be asked to start an open case and the honest answers are no commands
or a rejection; seeing several the act is refused, because the door carries
no target and a selection card would come back with the same question;
seeing none it mints as before.
The limit is the directory’s: a case the turn did not load cannot be seen. An
operation aimed at a new record is governed by
WorkflowDefinition::may_open_beside instead.
Variants§
OpensNewCase
Every start opens a new record.
The default, and what every workflow did before this existed.
ResumesOpenCase
A start reaches the case that is already open, when the turn sees one.
Implementations§
Trait Implementations§
Source§impl Clone for StartBehaviour
impl Clone for StartBehaviour
impl Copy for StartBehaviour
Source§impl Debug for StartBehaviour
impl Debug for StartBehaviour
Source§impl Default for StartBehaviour
impl Default for StartBehaviour
Source§impl<'de> Deserialize<'de> for StartBehaviour
impl<'de> Deserialize<'de> for StartBehaviour
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for StartBehaviour
Source§impl PartialEq for StartBehaviour
impl PartialEq for StartBehaviour
Source§impl Serialize for StartBehaviour
impl Serialize for StartBehaviour
impl StructuralPartialEq for StartBehaviour
Auto Trait Implementations§
impl Freeze for StartBehaviour
impl RefUnwindSafe for StartBehaviour
impl Send for StartBehaviour
impl Sync for StartBehaviour
impl Unpin for StartBehaviour
impl UnsafeUnpin for StartBehaviour
impl UnwindSafe for StartBehaviour
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.