How to set a favourite in workflow - kwantu/platformconfiguration GitHub Wiki

back

Workflow action to set a favourite

There is a workflow action to set a favourite to a user

{
  "_seq": 1,
  "method": {
    "generalFunctions": {
      "addToFavourites": {
        "context": <profile/subprofile/subprocess>,
        "user": {
          "indicator": {
            "indicatorSetId": "desteaBusinessDetails",
            "elementId": "userId"
          }
        }
      }
    }
  },
  "_id": "profileFav",
  "description": {
    "i18n": {
      "en": "test",
      "_id": ""
    }
  }
}

User to assign favourites to:

  1. Read the user value from an element in the data model
"user": {
          "indicator": {
            "indicatorSetId": "desteaBusinessDetails",
            "elementId": "userId"
          }
}
  1. Select the user assigned to a specific step
"user": {
          "stepAssignedFromStep": {
          "stepId": "xxxStepId"
        }
}