binaryninja::workflow

Struct Workflow

source
pub struct Workflow { /* private fields */ }

Implementations§

source§

impl Workflow

source

pub fn build(name: &str) -> WorkflowBuilder

Create a new unregistered Workflow with no activities. Returns a WorkflowBuilder that can be used to configure and register the new Workflow.

To get a copy of an existing registered Workflow use Workflow::clone_to.

source

pub fn clone_to(&self, name: &str) -> WorkflowBuilder

Make a new unregistered Workflow, copying all activities and the execution strategy. Returns a WorkflowBuilder that can be used to configure and register the new Workflow.

source

pub fn clone_to_with_root( &self, name: &str, root_activity: &str, ) -> WorkflowBuilder

Make a new unregistered Workflow, copying all activities, within root_activity, and the execution strategy.

  • name - the name for the new Workflow
  • root_activity - perform the clone operation with this activity as the root
source

pub fn get(name: &str) -> Option<Ref<Workflow>>

Get an existing Workflow by name.

source

pub fn cloned(name: &str) -> Option<WorkflowBuilder>

Clone the existing Workflow named name. Returns a WorkflowBuilder that can be used to configure and register the new Workflow.

source

pub fn list() -> Array<Workflow>

List of all registered Workflow’s

source

pub fn name(&self) -> String

source

pub fn contains(&self, activity: &str) -> bool

Determine if an Activity exists in this Workflow.

source

pub fn configuration(&self) -> String

Retrieve the configuration as an adjacency list in JSON for the Workflow.

source

pub fn configuration_with_activity(&self, activity: &str) -> String

Retrieve the configuration as an adjacency list in JSON for the Workflow, just for the given activity.

activity - return the configuration for the activity

source

pub fn registered(&self) -> bool

Whether this Workflow is registered or not. A Workflow becomes immutable once registered.

source

pub fn size(&self) -> usize

source

pub fn activity(&self, name: &str) -> Option<Ref<Activity>>

Retrieve the Activity object for the specified name.

source

pub fn activity_roots(&self, activity: &str) -> Array<BnString>

Retrieve the list of activity roots for the Workflow, or if specified just for the given activity.

  • activity - if specified, return the roots for the activity
source

pub fn subactivities(&self, activity: &str, immediate: bool) -> Array<BnString>

Retrieve the list of all activities, or optionally a filtered list.

  • activity - if specified, return the direct children and optionally the descendants of the activity (includes activity)
  • immediate - whether to include only direct children of activity or all descendants
source

pub fn graph( &self, activity: &str, sequential: Option<bool>, ) -> Option<Ref<FlowGraph>>

Generate a FlowGraph object for the current Workflow and optionally show it in the UI.

  • activity - if specified, generate the Flowgraph using activity as the root
  • sequential - whether to generate a Composite or Sequential style graph
source

pub fn show_metrics(&self)

Not yet implemented.

source

pub fn show_topology(&self)

Show the Workflow topology in the UI.

source

pub fn show_trace(&self)

Not yet implemented.

Trait Implementations§

source§

impl CoreArrayProvider for Workflow

source§

impl ToOwned for Workflow

source§

type Owned = Ref<Workflow>

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> Self::Owned

Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · source§

fn clone_into(&self, target: &mut Self::Owned)

Uses borrowed data to replace owned data, usually by cloning. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.