Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
5 replies
Subscribers
5 subscribers
Views
2003 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
Hi, Trying to modify a smart service using CDT exchanges, I'm str
olivierl
over 11 years ago
Hi,
Trying to modify a smart service using CDT exchanges, I'm struggling with input and output modifications.
Wanting to add one output to the working input/output schema, I followed those steps :
Remove jar plugin
remove DCT with system management/delete after checking there was no impact (I deleted process and template as it's a development system)
modify xsd, add line, reload it both in Eclipse and Appian, check if class and appian ok
Wait for application-server.log to get "Successfully un-installed Plug-in <my plugin>"
Export new jar in Eclipse
Unfortunately, I still got this message
[Plugin Hot Deploy] ERROR com.appiancorp.plugins.LoggingPluginEventListener - Failed to enable Plug-in 'et' (com.solse.et) version 1.0.0: 'The Smart Service Module was invalid: Smart service input and output count does not match the count for the existing smart service registered as com.solypse.etde.ETDE_xlimp
Existing size: 2
Incoming size:...
OriginalPostID-58009
OriginalPostID-58009
Discussion posts and replies are publicly visible
Parents
0
olivierl
over 11 years ago
...quired.ALWAYS)
@Name("ET_CDTxlin.second")
public void setSecond(String second){
this.second=second;
//sb.setSecond(second);
//String st = sb.getSecond();
log("second in " + this.second);
}
@Input(required = Required.ALWAYS )
@Name("ET_CDTxlin.first")
public void setFirst(int first){
this.first=first;
//sb.setFirst(first);
//int i = sb.getFirst();
log("first in " + this.first);
}
@Name("ET_CDTxlin.res") <---- this function added with new xsd
public int getOutput() {
first+=10;
return first;
}
actual xsd is
<xsd:schema targetNamespace="com.solse.et"
xmlns:appian21="
http://appian.solse.com"
xmlns:xsd="
www.w3.org/.../XMLSchema">
<xsd:complexType name="ET_CDTxlin">
<xsd:sequence>
<xsd:element name="first" type="xsd:int"/>
<xsd:element minOccurs="0" name="second" type="xsd:string"/>
<xsd:element name="res" type="xsd:int"/>
</xsd:sequence>
</xsd:complexType>
</xs...
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
olivierl
over 11 years ago
...quired.ALWAYS)
@Name("ET_CDTxlin.second")
public void setSecond(String second){
this.second=second;
//sb.setSecond(second);
//String st = sb.getSecond();
log("second in " + this.second);
}
@Input(required = Required.ALWAYS )
@Name("ET_CDTxlin.first")
public void setFirst(int first){
this.first=first;
//sb.setFirst(first);
//int i = sb.getFirst();
log("first in " + this.first);
}
@Name("ET_CDTxlin.res") <---- this function added with new xsd
public int getOutput() {
first+=10;
return first;
}
actual xsd is
<xsd:schema targetNamespace="com.solse.et"
xmlns:appian21="
http://appian.solse.com"
xmlns:xsd="
www.w3.org/.../XMLSchema">
<xsd:complexType name="ET_CDTxlin">
<xsd:sequence>
<xsd:element name="first" type="xsd:int"/>
<xsd:element minOccurs="0" name="second" type="xsd:string"/>
<xsd:element name="res" type="xsd:int"/>
</xsd:sequence>
</xsd:complexType>
</xs...
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data