Returns a single workflow instance.

oc_workflow_instance(workflowInstanceId = 0)

Arguments

workflowInstanceId

The workflow instance id

Value

Returns a single workflow instance.

Details

This function expects the hostname, username and password to be set as environment variables.

Examples

Sys.setenv(OPENCAST_HOST = "https://legacy.opencast.org") Sys.setenv(OPENCAST_USERNAME = "admin") Sys.setenv(OPENCAST_PASSWORD = "opencast") workflow_instances <- oc_list_workflow_instances() oc_workflow_instance(workflow_instances$content$identifier[1])
#> $content #> $content$workflow_definition_identifier #> [1] "fast" #> #> $content$identifier #> [1] 524 #> #> $content$creator #> [1] "Opencast Project Administrator" #> #> $content$description #> [1] "\n A minimal workflow that transcodes the media into distribution formats, then\n sends the resulting distribution files, along with their associated metadata,\n to the distribution channels.\n " #> #> $content$state #> [1] "succeeded" #> #> $content$title #> [1] "Fast Testing Workflow" #> #> $content$event_identifier #> [1] "2c028936-6610-4ea2-af4e-bc88eb6ee50a" #> #> #> $url #> [1] "https://legacy.opencast.org/api/workflows/524" #> #> $response #> Response [https://legacy.opencast.org/api/workflows/524] #> Date: 2020-03-19 11:21 #> Status: 200 #> Content-Type: application/v1.2.0+json #> Size: 432 B #> <BINARY BODY> #> #> attr(,"class") #> [1] "opencast_api"