pub struct WorkflowBuilder { /* private fields */ }
Implementations§
source§impl WorkflowBuilder
impl WorkflowBuilder
sourcepub fn register_activity(self, activity: &Activity) -> Result<Self, ()>
pub fn register_activity(self, activity: &Activity) -> Result<Self, ()>
sourcepub fn register_activity_with_subactivities<I>(
self,
activity: &Activity,
subactivities: I,
) -> Result<Self, ()>
pub fn register_activity_with_subactivities<I>( self, activity: &Activity, subactivities: I, ) -> Result<Self, ()>
sourcepub fn register(self) -> Result<Ref<Workflow>, ()>
pub fn register(self) -> Result<Ref<Workflow>, ()>
Register this Workflow, making it immutable and available for use.
sourcepub fn register_with_config(self, config: &str) -> Result<Ref<Workflow>, ()>
pub fn register_with_config(self, config: &str) -> Result<Ref<Workflow>, ()>
Register this Workflow, making it immutable and available for use.
configuration
- a JSON representation of the workflow configuration
sourcepub fn subactivities<I>(self, activity: &str, activities: I) -> Result<Self, ()>
pub fn subactivities<I>(self, activity: &str, activities: I) -> Result<Self, ()>
Assign the list of activities
as the new set of children for the specified activity
.
activity
- the Activity node to assign childrenactivities
- the list of Activities to assign
sourcepub fn insert<I>(self, activity: &str, activities: I) -> Result<Self, ()>
pub fn insert<I>(self, activity: &str, activities: I) -> Result<Self, ()>
Insert the list of activities
before the specified activity
and at the same level.
activity
- the Activity node for which to insertactivities
beforeactivities
- the list of Activities to insert
sourcepub fn insert_after<I>(self, activity: &str, activities: I) -> Result<Self, ()>
pub fn insert_after<I>(self, activity: &str, activities: I) -> Result<Self, ()>
Insert the list of activities
after the specified activity
and at the same level.
activity
- the Activity node for which to insertactivities
afteractivities
- the list of Activities to insert
Auto Trait Implementations§
impl Freeze for WorkflowBuilder
impl RefUnwindSafe for WorkflowBuilder
impl !Send for WorkflowBuilder
impl !Sync for WorkflowBuilder
impl Unpin for WorkflowBuilder
impl UnwindSafe for WorkflowBuilder
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
Mutably borrows from an owned value. Read more