Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

2 Dimensional data in velocity template for post workflow function

Graeme Mitchell January 7, 2014

I'm trying to figure out how I can configure a velocity template for a post workflow function where I can store 2 dimension data. For example, I may have a very simple template like so:-

<tr>
    <td class="fieldLabelArea">
        Transition Name:
    </td>
    <td nowrap>
        <input name="transition_name" id="transition_name" value="$transition_name" />
    </td>
    
        <td class="fieldLabelArea">
        External Status:
    </td>
    <td nowrap>
        <input name="external_status" id="external_status" value="$external_status" />
    </td>
</tr>

In this example, I can store one value for the "transition_name" value, and one value in the "external_status" value then get those values in the factory class for the plugin. Is it possible to somehow hold 2 dimensional data? Something like this:-

Transition_Name    External_Status
---------------    ---------------
Transition1        Status1
Transition1        Status2
Transition2        Status1

The number of "rows" would be variable depending on the place in the workflow. Right now, I'm having to have no inputs on my function and instead store this data in a database table together with the transition id to lookup the data. Works fine, but I'd like to configure these settings in the workflow to keep it all together.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Graeme Mitchell January 13, 2014

Can anyone help with this?

TAGS
AUG Leaders

Atlassian Community Events