Hi Denis:

G-Reg version is 4.0.0

There are several configured Life-cycle. For example:

<aspect name="TestPermissionsLifeCycle" class="org.wso2.carbon.governance.registry.extensions.aspects.DefaultLifeCycle">
<configuration type="literal">
<lifecycle>
<scxml xmlns="http://www.w3.org/2005/07/scxml";
                   version="1.0"
                   initialstate="Development">
<state id="Development">
<datamodel>
<data name="checkItems">
<item name="Code Completed" forEvent="">
<permissions>
<permission roles="everyone,admin,tios_deploy_role"/>
</permissions>
</item>
<item name="WSDL, Schema Created" forEvent="">
<permissions>
<permission roles="everyone,admin,tios_deploy_role"/>
</permissions>
</item>
<item name="QoS Created" forEvent="">
<permissions>
<permission roles="everyone,admin,tios_deploy_role"/>
</permissions>
</item>
</data>
</datamodel>
<transition event="Promote" target="Tested"/>
</state>
<state id="Tested">
<datamodel>
<data name="checkItems">
<item name="Effective Inspection Completed" forEvent="">
<permissions>
<permission roles="everyone,admin,tios_deploy_role"/>
</permissions>
</item>
<item name="Test Cases Passed" forEvent="">
<permissions>
<permission roles="everyone,admin,tios_deploy_role"/>
</permissions>
</item>
<item name="Smoke Test Passed" forEvent="">
<permissions>
<permission roles="everyone,admin,tios_deploy_role"/>
</permissions>
</item>
</data>
</datamodel>
<transition event="Promote" target="Production"/>
<transition event="Demote" target="Development"/>
</state>
<state id="Production">
<transition event="Demote" target="Tested"/>
</state>
</scxml>
</lifecycle>
</configuration>
</aspect>

But, also, I have tried to configure a distributed LCM sample life-cycle, and the result has been the same. The configuration for distributed LCM is:

<aspect name="TestDistributedLC" class="org.wso2.carbon.governance.samples.lcm.DistributedLCM"> <!-- Checklist can either be provided as a resource(type=resource) or as xml content(type=literal, default) as provided below. --> <!-- <configuration type="resource">/workspace/configuration</configuration> -->
<!-- OR -->
<configuration type="literal">
<lifecycle>
<state name="Diseño" roles="tios_deploy_role">
<permissions>
<permission action="promote" roles="tios_deploy_role"/>
</permissions>
<checkitem>uno</checkitem>
<checkitem>dos</checkitem>
<checkitem>tres</checkitem>
</state>
<state name="Final" roles="tios_deploy_role">
<permissions>
<permission action="demote" roles="tios_deploy_role"/>
</permissions>
<checkitem>cuatro</checkitem>
<checkitem>cinco</checkitem>
<checkitem>seis</checkitem>
</state>
</lifecycle>
</configuration>
</aspect>


Best Regards.


El 12/12/2011 14:56, Denis Weerasiri escribió:
Hi Roberto,
I think there's a problem with your configuration.
Can you attach the life-cycle configuration and please mention the G-Reg version you use?

2011/12/12 Roberto Mier Escandón <rmescan...@gmail.com <mailto:rmescan...@gmail.com>>


    Hi
    I'm not able to permit users different from admin user to
    check/uncheck the checkboxes in a lifecycle (promote or demote,
    even). I give users permissions for lifecycles but they can only
    see them, not change its status.
    I have also created a new lifecycle with permissions for  states
    (<state name="foo"  roles="foo_role">) or for promoting or
    demoting operations, but It doesn't works
    What is the solution?. Am I doing something wrong? Is there any bug?

    Greetings.

--
    Roberto Mier Escandón.

    _______________________________________________
    Carbon-dev mailing list
    Carbon-dev@wso2.org <mailto:Carbon-dev@wso2.org>
    http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev




--
Thanks,
Denis
----------------------------------------------------------
*Denis Weerasiri*
Software Engineer; WSO2 Inc.; http://wso2.com <http://wso2.com/>,
/email: denis <http://goog_277208233/>//[AT] wso2.com/ <http://wso2.com/>/
/
/site: //https://sites.google.com/site/ddweerasiri//
/blog: //http://ddweerasiri.blogspot.com/ <http://ddweerasiri.blogspot.com/>/
twitter: //http://twitter.com/ddweerasiri//
linked-in: //http://lk.linkedin.com/in/ddweerasiri/


_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


--

Roberto Mier Escandón.

_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to