Hi Samisa,

You can get a UI to show up when you change states, but not when you tick
an LC item. We do not have a sample that explains how to do a service call
within a validation nor a LC-transition IIRC. We'll need some to cover
those areas.

Thanks,
Senaka.

On Thu, Oct 11, 2012 at 3:16 PM, Samisa Abeysinghe <[email protected]> wrote:

> This is kind of what I was looking for. However I need something more on
> top of this.
>
> I need to be able to pop us a dialog (JS), get a value and use that as a
> parameter to this service call.
>
> 1. Can I use transitionScripts to do the dialog po-up part?
> 2. How do I pass the captured param to service call?
> 3. Do we have a sample?
>
>
> On Thu, Oct 11, 2012 at 10:15 AM, Janaka Ranabahu <[email protected]> wrote:
>
>> Hi Samisa,
>>
>> On Thu, Oct 11, 2012 at 9:49 AM, Samisa Abeysinghe <[email protected]>wrote:
>>
>>> I want to do, say, some service calls, when someone ticks a ckecklist
>>> item on an LC state.
>>
>> Does this call should happen as a post check-item click action or a pre
>> check-item click action.
>>
>>>
>>> Is that possible? If so how?
>>>
>> This is possible as a pre check-item click action. We can define a
>> validation class for check-item clicks and these classes are pluggable.
>> Validation classes can be configured from the lifecycle configuration.
>>
>> <item name="" forEvent="">*<!-- the check item element -->*
>>     <validations>
>>         <validation forEvent="" class="">
>>             *<!--forEvent - defines the event that the custom validation
>> should be done*
>> *class - defines the full qualified name of the custom validations class
>> -->*
>>             <parameter name="" value=""/>
>>             *<!--name - defines the custom parameter name*
>> *      value - defines the custom parameter value-->*
>>         </validation>
>>     </validations>
>> </item>
>>
>> And as a validation, we can do a service call or some other
>> functionality. Validations are similar to transition executors and there is
>> an interface that you need to implement. More information about validations
>> can be found in our docs[1]. Also there are a set of standard validators
>> that we ship with the distribution[2].
>>
>> If it is not possible, can we add that functionality?
>>>
>>> The use case is, it is required to make the tick real, for e.g. if the
>>> tick is about - did you report time, if reporting time itself is attached
>>> to the tick, it is more practical. If not, people will pre-tic with the
>>> post action intent, and in reality the action associated with the tick
>>> would not really happen.
>>>
>>
>> I believe validations are the solution for this problem. If the
>> validation fails, the check-item click will not happen.
>>
>> Thanks,
>> Janaka
>>
>> [1]
>> http://docs.wso2.org/wiki/display/Governance450/Configuring+Lifecycles
>> [2]
>> http://docs.wso2.org/wiki/display/Governance450/Supported+Standard+Validators
>>
>>>  Thanks,
>>> Samisa...
>>>
>>> Samisa Abeysinghe
>>> VP Engineering
>>> WSO2 Inc.
>>> http://wso2.com
>>> http://wso2.org
>>>
>>>
>>
>>
>> --
>> Janaka Ranabahu
>> Software Engineer
>> WSO2 Inc.
>>
>> Mobile +94 718370861
>> Email : [email protected]
>> Blog : janakaranabahu.blogspot.com
>>
>>  Thanks,
> Samisa...
>
> Samisa Abeysinghe
> VP Engineering
> WSO2 Inc.
> http://wso2.com
> http://wso2.org
>
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Senaka Fernando*
Member - Integration Technologies Management Committee;
Technical Lead; WSO2 Inc.; http://wso2.com*
Member; Apache Software Foundation; http://apache.org

E-mail: senaka AT wso2.com
**P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
Linked-In: http://linkedin.com/in/senakafernando

*Lean . Enterprise . Middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to