i
This document refers to an older version. GeneXus 16 is our latest version.

WorkflowActivity Data Type

Unofficial Content
This documentation is valid for:

Description

This object represents an activity (in the context of a process definition).

Properties

Property Type Access Description
Id WorkflowActivityId  Read Identifier
Name WorkflowName Read Activity name
ProcessDefinition WorkflowProcessDefinition Read Process definition
ProcessDefinitionId WorkflowProcessDefinitionId Read Identifier of the process definition
Class WorkflowActivityClass Read Activity Class
isInitial Boolean Read Indicates if the activity is initial
isFinal Boolean Read Indicates if the activity is final
Subprocess WorkflowProcessDefinition Read Definition of associated subprocess
Application WorkflowApplication  Read Name of the associated Web application
Roles Collection (WorkflowRole) Read Roles associated to the activity
ExtendedAttributes Collection (WorkflowAttribute) Read Activity extended attributes
SuccesiveActivities Collection (WorkflowActivity) Read Successive activities
SuccessiveOptionalActivities Collection (WorkflowActivity) Read Successive Optional activities
DocumentDefinitions Collection (WorkflowDocumentDefinition) Read Document Definitions associated to the activity
PreviewApplication WorkflowApplication Read Preview application associated to the activity
QueryApplication WorkflowApplication Read Query application associated to the activity
canDelegate Boolean Read It indicates if the activity can be delegated
canCollaborate Boolean Read It indicates if several users can collaborate to the execution of an activity
canWorkWithDocuments Boolean Read It indicates if documents can be attached to the activity
isAdhoc Boolean Read It indicates if an activity is ad hoc
isSelectableForAdhoc Boolean Read It indicates if an activity can be selectable for ad hoc
AttachedBusinessEvent Collection (WorkflowBusinessEvent) Read  
AttachedTimers Collection (WorkflowTimer) Read  
Error WorkflowError Read  

Methods

  • AssignRole

Assign a Role to the Activity.

AssignRole(role) 

  Name Type Movement Description
1 role  WorkflowRole  Input  Workflow Role
  • UnAssignRole

Unassign a Role to the Activity.

UnAssignRole(role) 

  Name Type Movement Description
1 role  WorkflowRole  Input  Workflow Role

 

  • GetDocumentDefinitionAllowedActions

This method allows to recovering the actions allowed to a specified document.

GetDocumentDefinitionAllowedActions(DocumentDefinition):Collection(WorkflowDocumentAction)

  Name Type Movement Description
1 DocumentDefinition WorkflowDocumentDefinition  Input Workflow Document Definition
  • GetDocumentDefinitionRequiredActions

This method allows to recovering the actions required to a specified document.

GetDocumentDefinitionRequiredActions(DocumentDefinition):Collection(WorkflowDocumentAction)

  Name Type Movement Description
1 DocumentDefinition WorkflowDocumentDefinition  Input Workflow Document Definition
  • Load

Allows to load an Activity by Identifier.

Load(ProcessDefinitionId,id)

  Name Type Movement Description
1 ProcessDefinitionId WorkflowProcessDefinitionId Input Process Definition Id 
2 Id WorkflowActivityId  Input  
  • LoadByName

Allows to load an Anctivity by Name..

LoadByName(Name)

  Name Type Movement Description
1 Name WorkflowName  Input  
  • GetPropertyValue

Allows to recover the value of a property with the name it appears in the task in GeneXus.

GetPropertyValue(Name):Character

  Name Type Movement Description
1 Name Character () Input  

 

See Also

Workflow Error Codes