Please enable JavaScript to view this site.

Process Designer

Navigation: PHP API > Other functions

URL for accessing a step (getStepUrl)

Scroll Prev Top Next More

This function allows you to generate the URL for accessing a specific step by a specific user.

Parameter

Type

Description

$workflowId

string

Workflow ID of the step

$userName

string

Username (optional); The name of the current user is set as default value

The function returns the URL for accessing the stated step by the user.

Example:

$workflowId = $this->getWorkflowId();

$userName = 'admin';

$stepUrl = $this->getStepUrl($workflowId, $userName);