VMware Cloud Community
WWI
Enthusiast
Enthusiast
Jump to solution

SOAP API - Get the default Value of an external Input of an User-Interaction

Hi Guys,

I'm trying to get the Default-Value of a external Input of a User-Interaction.

My Testworkflow only has a start and end, in the middle there is a "User Interaction" with two external Inputs. One of the externals Inputs has via Presentation a Default value.

This default value is what I want to get via SOAP for Scripting Smiley Wink

Everything I can figure out with the Method "getWorkflowInputForWorkflowTokenId" is the following:

    [getWorkflowInputForWorkflowTokenIdReturn] => stdClass Object

        (

            [id] => 2c961dc145ccc05e0145e0baae600c7a

            [workflowTokenId] => 2c961dc145ccc05e0145e0baadd40c77

            [name] => myWorkflowName : TestInteraction

            [description] => Description der Interaction

            [parameters] => stdClass Object

                (

                    [item] => Array

                        (

                            [0] => stdClass Object

                                (

                                    [name] => externalInputString

                                    [type] => string

                                )

                            [1] => stdClass Object

                                (

                                    [name] => externalInputNumber

                                    [type] => number

                                )

                        )

                )

            [attributes] =>

            [state] => 0

            [creationDate] => 20140509132501+0200

            [xmlContent] =>

Is it possible to get this Value? (even with REST-API? <= I didn't find it there as well)

Thanks,

Marc

Reply
0 Kudos
1 Solution

Accepted Solutions
iiliev
VMware Employee
VMware Employee
Jump to solution

Hi Marc,

'xmlContent' property should contain some XML content similar to:

<workflow-input>

   <presentation>

...

   </presentation>

<workflow-input>

User interaction parameters, including default value, should be inside 'presentation' element.

Hope this helps,

Ilian

View solution in original post

Reply
0 Kudos
3 Replies
iiliev
VMware Employee
VMware Employee
Jump to solution

Hi Marc,

'xmlContent' property should contain some XML content similar to:

<workflow-input>

   <presentation>

...

   </presentation>

<workflow-input>

User interaction parameters, including default value, should be inside 'presentation' element.

Hope this helps,

Ilian

Reply
0 Kudos
mcfadyenj
Hot Shot
Hot Shot
Jump to solution

there is a trick to doing this. Each execution of a workflow via UI or code keeps a token reference.

You can load the tokens programatically or via the rest api. I like to use the builtin restapi, I used google chrome with the restclient extension added.

from there you can load up the previously executed tokens, once inside those token you can see all the workflowToken parameters that were passed in during execution. This helps you to expose the types being sent in to existing workflows.

if you need more detail just shoot me a pm and I can document it for you.


Reply
0 Kudos
WWI
Enthusiast
Enthusiast
Jump to solution

Hi Ilian,

thanks for your answer!!

The whole problem was that the Browser doesn't display the XMLContent (in the Sourcecode it's still there).

Thank you very much! (mcfadyenj as well) :smileycool:Smiley Happy

Regards,

Marc

Reply
0 Kudos