Click or drag to resize

MainCompleteActivityAsCurrentAssignee Method

The method completes the activity as the current assignee:

if the activity is assigned to a group, a member within the group is assigned to the activity.

The activity is completed even if the assignee rejects the activity.

Important Note: This codemethod does not allow you to approve activities within the same process!

Codemethod usage
Designed to be used in a process only (Yes/No)Yes
Action Object (data object type)Activity

Namespace:  Omada.OE.UtilityCodeAssembly
Assembly:  Omada.OE.UtilityCodeAssembly (in Omada.OE.UtilityCodeAssembly.dll) Version: 15.0.0.0
Syntax
C#
public void CompleteActivityAsCurrentAssignee(
	CodeMethodInvokeContext context,
	string transitionTemplateUIdStr,
	string voteComment
)

Parameters

context
Type: Omada.OE.ModelCodeMethodInvokeContext
An invoke context object.
transitionTemplateUIdStr
Type: SystemString
UId of the transition that the activity should activate after completion
voteComment
Type: SystemString
if activity is of type voting, voteComment is added to the activity.
See Also