2022 April Release

Customization Point COOWF@1.1:MetaParticipant Permanent link for this heading

This customization point defines how the meta participant is resolved and which attributes of the participant control are needed to correctly define the meta participant.

Example:
customize MetaParticipant<Object, WFMP_INITIATOR> {
  newparticipant = expression {
    @owner = object.objowner;
    WorkFlowParticipant @part = {};
    if (@owner != null) {
      @roles = @owner.userroles[COOSYSTEM@1.1:default==true];
      if (count(@roles) > 0) {
        @role = @roles[0];
        @rolegroup = @role.userrolegroup;
        if (@rolegroup != null) {
          if (@role.userrolepos == #HeadPos) {
            @supergroups = @rolegroup.grsupergroups;
            if (count(@supergroups) > 0) {
              @part.wfpgroup = @supergroups[0];
            }
            else {
              @part.wfpgroup = @rolegroup;
            }
            @part.wfpposition = #HeadPos;
          }
          else {
            @part.wfpgroup = @rolegroup;
            @part.wfpposition = #HeadPos;
          }
        }
        else {
          @part.wfpmetaparticipant =
            participant.wfpmetaparticipant;
        }
      }
      else {
        @part.wfpmetaparticipant =
          participant.wfpmetaparticipant;
      }
    }
    else {
      @part.wfpmetaparticipant =
        participant.wfpmetaparticipant;
    }
    @part;
  }
}

object[] COOWF@1.1:MetaParticipant(
  key ObjectClass objclass,
  key WorkFlowMetaParticipant metapart,
  optional object object,
  optional ActivityInstance activity,
  optional ProcessInstance process,
  optional WorkFlowParticipant participant,
  out optional retval WorkFlowParticipant newparticipant,
  out optional retval direct object[] properties)

Name

Description

objclass

applies to objects of the defined object class

metapart

defines the meta participant that should be resolved

object

the object of the process

activity

the activity instance with the participant defined as the supplied meta participant

process

the process instance object

participant

the entire participant aggregate as defined on the activity instance; the value can supply additional information needed to resolve the meta participant (e.g. an organizational unit or property)

newparticipant

defines the expression that is used to resolve the meta participant to a participant
Note: The participant aggregate can also include another meta participant which can be evaluated with this configuration again.

properties

defines a list of attribute definitions of the participant aggregate which are used for the abstract participant; all other attributes of the participant aggregate, except the meta participant self, are cleared and hidden when this meta participant is selected in the participant control (if this parameter is empty, all values of the participant aggregate will be kept)
Possible values for this parameter are:

Additional Information