Learn R Programming

bpmnR (version 0.1.1)

calculate_CFC: Control Flow Complexity (CFC) -------------------------------------------

Description

Control Flow Complexity (CFC) -------------------------------------------

Usage

calculate_CFC(bpmn)

Value

Control-Flow-Complexity. Numeric vector of length 1

Arguments

bpmn

bpmn-object.

Examples

Run this code
library(dplyr)
nodes <- tibble(id = "task", name = "Task name", objectType = "task",
gatewayDirection = NA)
events <- tibble(id = c("start","end"), name = c("Start event","End event"),
objectType = c("startEvent","endEvent"))
flows <- tibble(id = c("flow1","flow2"), name = c("flow1","flow2"),
sourceRef = c("start","task"), targetRef = c("task","end"),
objectType = c("sequenceFlow","sequenceFlow"))
model <- create_bpmn(nodes, flows, events)
calculate_CFC(model)

Run the code above in your browser using DataLab