Bug 998829

Summary: Conversation type property has no type set when activity is queried over REST
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Jiri Pechanec <jpechane>
Component: RT GovernanceAssignee: Gary Brown <gbrown>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Sedlacek <jsedlace>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.0 GACC: oskutka, soa-p-jira
Target Milestone: ER2   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jiri Pechanec 2013-08-20 07:47:49 UTC
I have an IP configured to set Conversation context. It is properly stored in the database as can be seen using
SELECT * FROM RTGOV_ACTIVITY_CONTEXT
12e5af2c-361c-4bc9-99d6-8aa8cc1d9c7a	0	0	Conversation	1

But when a REST call is done the it returns

    {
    "type":"RequestReceived",
    "interface":"org.jboss.soa.qa.shared.service.OrderService",
    "operation":"processOneWay",
    "serviceType":"{
    urn:switchyard-soa:rtgov_activity_generation:0.1.0
}OrderService",
    "messageType":"java:org.jboss.soa.qa.shared.data.SimpleOrder",
    "content":"1",
    "timestamp":1376982800058,
    "unitId":"12e5af2c-361c-4bc9-99d6-8aa8cc1d9c7a",
    "context":[{
    "value":"ID-jpechane-47122-1376909188101-18-1",
    "type":"Message"
},
    {
    "value":"1"
}],
    "properties":{
    "orderId":"1"
}

A type is missing for Conversation value

Comment 1 Gary Brown 2013-08-20 09:17:06 UTC
Wasn't a bug as such - the Conversation type was the default value, and json serialization has been configured not to include values that are the same as the default, to ensure it is the most concise representation.

However for clarity, it is probably better that the context type is explicit, so have removed the default type from the Context object.

Comment 2 Jiri Pechanec 2013-09-16 10:14:21 UTC
Verified in ER2

Comment 6 JBoss JIRA Server 2014-07-02 09:18:45 UTC
Gary Brown <gary> updated the status of jira RTGOV-255 to Closed