Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sapphire-dev] sapphire model xml resource changes?

Looks to be a regression. Likely related to fix for Bug 345502 and the fact that in your scenario the element only has attributes. Please re-open this bug with info about the regression.

 

https://bugs.eclipse.org/bugs/show_bug.cgi?id=345502

 

- Konstantin

 

 

From: Shenxue Zhou [mailto:shenxue.zhou@xxxxxxxxxx]
Sent: Friday, June 10, 2011 3:29 PM
To: Konstantin Komissarchik
Subject: sapphire model xml resource changes?

 

The following piece of code:

 

              XmlResourceStore xmlStore = new XmlResourceStore( new WorkspaceFileResourceStore(taskFlowFile));
              IADFController controller = IADFController.TYPE.instantiate(new RootXmlResource(xmlStore));
              controller.getTaskFlow().setTaskFlowId(name);
              xmlStore.save();

It used to generate the following xml:

 

<?xml version="1.0" encoding="UTF-8"?>
<adfc-config xmlns="http://xmlns.oracle.com/adf/controller" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/adf/controller http://xmlns.oracle.com/adf/controller/1.0">
    <task-flow-definition id="task-flow-definition">
    </task-flow-definition>
</adfc-config>

 

But now it only generate this xml:

 

<?xml version="1.0" encoding="UTF-8"?>
<adfc-config xmlns="http://xmlns.oracle.com/adf/controller" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/adf/controller http://xmlns.oracle.com/adf/controller/1.0">
</adfc-config>

 

I don't know whether it's the intended behavior? If so, how could I force the generating of task-flow-definition element?

 

Thanks,

 

Shenxue


Back to the top