[JBoss JIRA] (GADGETS-45) Properties not displayed for Situation
by Jeff Yu (JIRA)
[ https://issues.jboss.org/browse/GADGETS-45?page=com.atlassian.jira.plugin... ]
Jeff Yu resolved GADGETS-45.
----------------------------
Resolution: Done
> Properties not displayed for Situation
> --------------------------------------
>
> Key: GADGETS-45
> URL: https://issues.jboss.org/browse/GADGETS-45
> Project: Gadget Server and Gadgets
> Issue Type: Bug
> Reporter: Gary Brown
> Assignee: Jeff Yu
> Fix For: 1.0.0.M4
>
> Attachments: GadgetWeb.png, JSON.png
>
>
> The runtime governance order management example, in combination with the SLA monitor sample rules, creates a couple of Situation items when sending in the following soap message:
> {noformat}
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
> <soap:Body>
> <orders:submitOrder xmlns:orders="urn:switchyard-quickstart-demo:orders:1.0">
> <order>
> <orderId>3</orderId>
> <itemId>JAM</itemId>
> <quantity>100</quantity>
> <customer>Fred</customer>
> </order>
> </orders:submitOrder>
> </soap:Body>
> </soap:Envelope>
> {noformat}
> When directly querying the REST service, it shows the following JSON:
> {noformat}
> [{"description":"InventoryService exceeded maximum response time of 400 ms","severity":"Critical","activityTypeIds":[{"unitId":"1903c76a-88f7-44e2-8277-8c8e9a0f5ee6","unitIndex":2},{"unitId":"1903c76a-88f7-44e2-8277-8c8e9a0f5ee6","unitIndex":5}],"context":[{"value":"f24f08b4-bb2f-4327-a5b8-6316b3bc8d92","type":"Message"},{"value":"fc6f1973-d798-4266-bbf6-898a801dff8f","type":"Message"}],"subject":"{urn:switchyard-quickstart-demo:orders:0.1.0}InventoryService/lookupItem","timestamp":1363271983097,"properties":{},"type":"SLA Violation"},{"description":"OrderService exceeded maximum response time of 400 ms","severity":"Critical","activityTypeIds":[{"unitId":"1903c76a-88f7-44e2-8277-8c8e9a0f5ee6","unitIndex":0},{"unitId":"1903c76a-88f7-44e2-8277-8c8e9a0f5ee6","unitIndex":12}],"context":[{"value":"fa13a4c3-9199-4df3-9801-ab51a0e6fd80","type":"Message"},{"value":"3","type":"Conversation"},{"value":"c6fddfce-ced1-4eaf-af92-cc4fab0c09e9","type":"Message"}],"subject":"{urn:switchyard-quickstart-demo:orders:0.1.0}OrderService/submitOrder","timestamp":1363271983098,"properties":{"customer":"Fred","total":"240.0","item":"JAM"},"type":"SLA Violation"}]
> {noformat}
> (also shown in the attached image).
> At the end of this response there is a set of properties, i.e. customer=Fred, total=240.0, item=JAM.
> However in the Situations gadget, only the context values are being displayed (see other attached image).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 3 months
[JBoss JIRA] (GADGETS-44) User Preference functionality.
by Jeff Yu (JIRA)
[ https://issues.jboss.org/browse/GADGETS-44?page=com.atlassian.jira.plugin... ]
Jeff Yu edited comment on GADGETS-44 at 3/18/13 12:37 AM:
----------------------------------------------------------
For now, we use the in-house solution to get the user preference value.
getUserPreferenceValue(...) from the gs-common.js
was (Author: jeff.yuchang):
For now, we the in-house solution to get the user preference value.
getUserPreferenceValue(...) from the gs-common.js
> User Preference functionality.
> ------------------------------
>
> Key: GADGETS-44
> URL: https://issues.jboss.org/browse/GADGETS-44
> Project: Gadget Server and Gadgets
> Issue Type: Task
> Components: Gadget Server
> Affects Versions: 1.0.0.M3
> Reporter: Jeff Yu
> Assignee: Jeff Yu
> Fix For: 1.0.0.M4
>
>
> Currently, the value set in the user preference won't be passed in to the gadgets.xml. specifically, can't be retrieved by using following code:
> var prefs = new gadgets.Prefs();
> prefs.getString(...)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 3 months
[JBoss JIRA] (GADGETS-44) User Preference functionality.
by Jeff Yu (JIRA)
[ https://issues.jboss.org/browse/GADGETS-44?page=com.atlassian.jira.plugin... ]
Jeff Yu commented on GADGETS-44:
--------------------------------
For now, we the in-house solution to get the user preference value.
getUserPreferenceValue(...) from the gs-common.js
> User Preference functionality.
> ------------------------------
>
> Key: GADGETS-44
> URL: https://issues.jboss.org/browse/GADGETS-44
> Project: Gadget Server and Gadgets
> Issue Type: Task
> Components: Gadget Server
> Affects Versions: 1.0.0.M3
> Reporter: Jeff Yu
> Assignee: Jeff Yu
> Fix For: 1.0.0.M4
>
>
> Currently, the value set in the user preference won't be passed in to the gadgets.xml. specifically, can't be retrieved by using following code:
> var prefs = new gadgets.Prefs();
> prefs.getString(...)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 3 months
[JBoss JIRA] (GADGETS-46) Showing saved service and operations in the user preference.
by Jeff Yu (JIRA)
Jeff Yu created GADGETS-46:
------------------------------
Summary: Showing saved service and operations in the user preference.
Key: GADGETS-46
URL: https://issues.jboss.org/browse/GADGETS-46
Project: Gadget Server and Gadgets
Issue Type: Task
Components: RT-Gadget
Reporter: Jeff Yu
Assignee: Jeff Yu
Fix For: 1.0.0.M4
The service definition sometimes won't contain the value that users saved in their preference, (because the definition keep changing). We'll need to retain that service and operation in the user preference select box.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 3 months