project_oc_arcs
Project OC-DECLARE arcs onto a subset of activities, preserving constraints
that reach a target via a chain through transitive activities.
BFSs from every target activity through non-target intermediaries, composing
arc types and labels along the way.
that reach a target via a chain through transitive activities.
BFSs from every target activity through non-target intermediaries, composing
arc types and labels along the way.
fn project_oc_arcs(arcs*: Vec<OCDeclareArc>, activities*: Vec<String>, reduction*: OCDeclareReductionMode) → Vec<OCDeclareArc>
Arguments
Returns
import r4pm
arcs = [{"arc_type": 'AS', "counts": [1, 1], "from": 'example', "label": {"all": [{"object_type": 'order', "type": 'Simple'}], "any": [{"object_type": 'order', "type": 'Simple'}], "each": [{"object_type": 'order', "type": 'Simple'}]}, "to": 'example'}]
res = r4pm.bindings.project_oc_arcs(arcs, ['example'], 'None')