Reevaluate skins

If the data used to evaluate rules were incorrect, you can re-evaluate a skin to know which skin was chosen, and then move the job onto the correct skin by calling the relevant .NET API through .NET activity.

  1. Update job variable values.
  2. Open the map with the relevant .NET activity.
  3. Select the activity.
  4. On the Extended Properties page of the activity, click the Configuration tab.
  5. In the Assembly File Path box, consume the TotalAgility.Sdk.dll assembly.
  6. The Load Assembly Using Full Name option automatically turns Yes when the assembly is signed. (Default- No).
  7. On the Class list, select TotalAgility .Sdk.JobService.
  8. On the Method list, select ReEvaluateSkin.

    A list of parameters for this method appears.

  9. Map the variables with the following parameters of the ReEvaluateSkin method.

    Parameter

    Variable Type

    Sessionid

    String

    ID

    String

    UpdateVariablevalues under skinOptions

    Boolean

    UpdateLiveActivities under skinOptions.

    Note If the value of this variable is set to True, the existing activity properties are updated with that of the relevant skin.

    Boolean

    Note If you set the Boolean-type variable values and live activities as initialization variables, you can specify variable values at runtime.

  10. Click Save.
  11. Create a job on this map and complete the job.
    The job is created on the relevant skin.
    Note Because the values of the rule variables in the map are preset to match a skin rule, TotalAgility automatically creates a job on the relevant skin, and overwrites the existing job. However, if any activities were taken and completed, the job continues within the context of the selected skin.