UserPickList

Node Action:

The UserPickList node action shows a list of the users for a tenant.

Parameters:

se_type

UserPickList

se_type = UserPickList

se_roleFilter

The roles required to be added to the pick list. This is a comma delimited list.

se_resultVariable

The variable name to save the user ID.

Example:

Assign User: The following workflow allows you to pick a user to assign a design to after completing the design.

digraph finite_state_machine { 

  splines=spline; 
  edge[arrowsize=1, color=black];
  node[shape = box, color = green];
  
  
  
  entry[

    label = "Send For Approval (Test)",
    shape= invhouse,
    height = 1,
    
    se_type1 = CompleteAssignmentTrigger,
    se_displayName1 = "Send For Approval (Test)",
    se_iconService1 = KvStorage,
    se_iconUrl1 = "/api/v1/global/_attachment/SE.Geospatial.Designer/Settings/WorkflowActions/Draw/SendForApproval",   
    se_requiresConfirmation1 = false,
    se_requiresInternet1 = false,
    se_sortOrder1 = 0,
    se_visibilityCondition1 = "(ctx, log) => {
      return true;
      //return ctx.Event.assignment.assignmentType == \"Draw\" || ctx.Event.assignment.assignmentType == \"Alternative Selected\";
   }"
    
  ];  
   

showUserPickList[
    label = "Show User Pick List",
    se_type1 = UserPickList,
    se_roles1 = "Designer.Approval",
    se_resultVariable1 = ChosenSupervisorId,
  ]
     
  exitSuccess[
    label= "Exit success", 
    shape=invhouse, 
    color="#22FF44", 
    style=filled
    se_type1 = Action,
    se_action1 = "(ctx, log) => {
    
      if(ctx.State.ChosenSupervisorId == null)
       {
          ctx.Output.Cancel = true;
          return;
       }
       
      ctx.State.WorkflowButtonKey = \"SendForApproval\";
      ctx.Output.WorkflowButtonKey = \"SendForApproval\";
      ctx.Output.UserId = ctx.State.ChosenSupervisorId;
      
      
    }"
  ];
  
entry->showUserPickList;

showUserPickList->exitSuccess;

  
}
Feedback
QR Code is a registered trademark of DENSO WAVE INCORPORATED in Japan and other countries.