set_probabilities_to_XOR_split: Specify the probabilities of a XOR-split

Description Usage Arguments

Description

A XOR-split is used in BPMN to model a XOR-GATE structure or to model a LOOP. In the case of a XOR-GATE structure, this function can be used to specify the probability to flow through one of the alternative paths by using the parameters first_elements and probabilities. In the case of a LOOP, this function can be used to specify the probability to continue (the probability that you don't go into the loop) by using the parameter prob_to_continue Note that this information should be added before running the transform_BPMN() function (see ?transform_BPMN())

Usage

1
2
set_probabilities_to_XOR_split(process, split, first_elements = c(),
  probabilities = c(), prob_to_continue = 0)

Arguments

process

processmodel

split

The split object. Accepts a list object created with the add_XOR_split function OR with the import_BPMN function

first_elements

a character vector containing the name of the first element of each alternative path of the XOR-GATE structure.

probabilities

a numeric vector containing the probability of flowing through each alternative path.the sum should be equal to 1. The sequence of the branches should be identical to the sequence in the first_elements vector

prob_to_continue

a numeric between 0 and 1 indicating the probability of continuing without entering the loop.


fgailly/BPS-package documentation built on May 8, 2019, 11:44 a.m.