Hi,
In current g-reg we have the option of giving a transition UI for the
lifecycle transition in the management console. This UI is used to take the
user inputs for the executor logic.
To incorporate this feature into the publisher view, we have come up with
the proposal of embedding a set of new elements in the LC definition. This
will be parsed from the publisher side and it will display a rendered page
for user inputs. To enable this we will modify the scxml.xsd and the user
will have to set the input parameters as follows:
<data name="transitionExecution">
<execution forEvent="Promote"
class="org.wso2.carbon.governance.registry.extensions.executors.ServiceVersionExecutor">
*<form>*
* <input name="approver" type="text"/>*
* <input name="comment"
type="text-area"/>*
* </form>*
<parameter name="currentEnvironment"
value="/_system/governance/trunk/{@resourcePath}/{@version}/{@resourceName}"/>
<parameter name="targetEnvironment"
value="/_system/governance/branches/testing/{@resourcePath}/{@version}/{@resourceName}"/>
<parameter name="service.mediatype"
value="application/vnd.wso2-service+xml"/>
<parameter name="wsdl.mediatype"
value="application/wsdl+xml"/>
<parameter name="endpoint.mediatype"
value="application/vnd.wso2.endpoint"/>
</execution>
</data>
Appreciate any feedback about this approach.
Thanks!
Isuruwan
--
Isuruwan Herath
Technical Lead
Contact: +94 776 273 296
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture