Skip to contents

Get/Set SA-item Priority

Usage

set_priority(jsap, idx, priority = 0L)

get_priority(jsai)

Arguments

jsap

SAProcessing to be modified.

idx

index of the target SA-item.

priority

integer containing the priority.

jsai

a SA-item.

Examples


# Load a workspace
file <- system.file("workspaces", "workspace_test.xml", package = "rjd3workspace")
my_jws <- jws_open(file)

# Select the first SA-Processing and SA-Item
jsap <- jws_sap(my_jws, 1)
jsai <- jsap_sai(jsap, 1L)

# Change priority
set_priority(jsap, idx = 1L, priority = 3L)

# Retrieve priority
get_priority(jsai)
#> [1] 0