Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Workflow Type Name (Id)

OrganizationUnitActivation, 30

Configured on

Organization unit type

Description

When the organization unit is activated

Data structure

Code Block
"Data": {
  "Initiator": {
      "Id": uint, //core identity id
      "Name": string,
      "Email": string
   },
  "Participants": participant[],
  "OrganizationUnitId": uint,
  "Comment": string
}
where participant{
  "Id": uint?, //core identity id - if user exists in our system
  "Name": string,
  "Email": string
}

Example

Code Block
"Data": {
          "Initiator": {
            "Id": 13,
            "Name": "Wiwoldi Wawrinka",
            "Email": "wiwa@coreone.ch"
          },
          "Participants": [
            {
              "Id": 1,
              "Name": "Simon Gubler - EXT",
              "Email": "sigu@coreone.ch"
            },
            {
              "Id": 6,
              "Name": "Roland Fauler",
              "Email": "rofa@coreone.ch"
            },
            {
              "Id": null,
              "Name": "Markus Prottner - NO ID ",
              "Email": "mapo@coreone.ch"
            }
          ],
          "OrganizationUnitId": 5448,
          "Comment": null
        }

C# class name

OrganizationUnitActivationRequestedWorkflowInput

PostAssetUpdate

Workflow Type Name (Id)

PostUpdate, 35

Configured on

Asset type

Description

Post asset update. Has data of unchanged entity and changed one. The diff can expose what changes are made. For readablility Asset State was added as separate string property

Data structure

Code Block
"Data": {
  "EntityBefore": AssetDataContract, //data contract with unchanged data
  "StateBefore": string, //string representation of state enum
  "AfterBefore": AssetDataContract, //data contract with changed data
  "StateAfter": string,
}
where AssetDataContract{
  "Id": uint, 
  "AssetTypeId": AccessDeniedHandler<uint>,
  "AssetGroupId": AccessDeniedHandler<uint>,
  "AssetStateId": AccessDeniedHandler<uint>,
  "AutoAssignable": boolean,
  "AssignmentObjectpropertycontributor": string, //can be "CoreIdentity", "ResourceDefinition" or NULL
  "AssignmentReference": string,
  "AssignmentReason": string,
  "AssignmentTypeId": AccessDeniedHandler<uint>
}

Example

Code Block
"Data": {
          "EntityBefore": {
            "Id": 3,
            "AssetTypeId": {
              "Value": 1,
              "WasAccessDenied": false
            },
            "AssetGroupId": {
              "Value": 1,
              "WasAccessDenied": false
            },
            "AssetStateId": {
              "Value": 2,
              "WasAccessDenied": false
            },
            "AutoAssignable": true,
            "TenantId": 1,
            "AssignmentObjectpropertycontributor": "CoreIdentity",
            "AssignmentReference": "15",
            "AssignmentReason": "r:16",
            "AssignmentTypeId": {
              "Value": 2,
              "WasAccessDenied": false
            }
          },
          "StateBefore": "Assigned",
          "EntityAfter": {
            "Id": 3,
            "AssetTypeId": {
              "Value": 1,
              "WasAccessDenied": false
            },
            "AssetGroupId": {
              "Value": 1,
              "WasAccessDenied": false
            },
            "AssetStateId": {
              "Value": 1,
              "WasAccessDenied": false
            },
            "AutoAssignable": true,
            "TenantId": 1,
            "AssignmentObjectpropertycontributor": null,
            "AssignmentReference": null,
            "AssignmentReason": null,
            "AssignmentTypeId": {
              "Value": 2,
              "WasAccessDenied": false
            }
          },
          "StateAfter": "NotAssigned"
        },

C# class name

AssetPostUpdateWorkflowInput