Versions Compared

Key

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

...

The following input data can be configured for the activity.

ResourceId

The identifier id of the Resourceresource.

Output Data

Result

A ResourceTemplateDataContract with the following definition:

Code Block
    /// <summary></summary>
    [DataMember]
    public string DisplayName { get; set; }

    /// <summary></summary>
    [DataMember]
    public string ResourceIdentifier { get; set; }

    /// <summary></summary>
    [DataMember]
    public uint ResourceTypeId { get; set; }

    /// <summary></summary>
    [DataMember]
    public string ResourceType { get; set; }

    /// <summary></summary>
    [DataMember]
    public string ResourceGroup { get; set; }

    /// <summary></summary>
    [DataMember]
    public string ForeignId { get; set; }

    /// <summary></summary>
    [DataMember]
    public bool DeletePending { get; set; }

    /// <summary></summary>
    [DataMember]
    public bool IsProvisioned { get; set; }

    /// <summary></summary>
    [DataMember]
    public string Owner { get; set; }

    /// <summary></summary>
    [DataMember]
    public uint ResourceOwnerCoreIdentityId { get; set; }

    /// <summary></summary><summary>With the attribute system name [DataMember]as     public Dictionary<stringthe key, object>and Attributesthe {value get;of set;the }

    /// <summary>
    /// This is a dummy property, it is used because WCF does not handle the
    /// knowntype-attributes without it see:<https://social.msdn.microsoft.com/Forums/vstudio/en-US/27dfcf47-b2dd-4ef8-a49c-3113bf4e9497/known-type-wcf-dictionarystringobject-int?forum=wcf>
    /// </attribute as the value</summary>
    [DataMember]
    public object UsedForKnownTypeSerializationObjectDictionary<string, object> Attributes { get; set; }

Serialization

To be able to use it in the ConvertObjectToXml activity because of how the workflow engine handles complex objects it needs to be converted to plain JSON again.

This can be achieved in Javascript with:

Code Block
JSON.parse(JSON.stringify(YourTemplateContract))