a. Add String uriParm name with getter and setter b. Important: Modify createConsumer() method to throw UnsupportedFormatException. c. Add map param decoratorParam with getter and setter |
In this class, you add the logic. As per the use case here, I added head, append and tail information from the map and constructed the UI. |
head<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ComponentMetadata ComponentId="ctype::Adapter/cname::GreetingReceiver/vendor::sap/version::1.0.0" ComponentName="GreetingReceiver" UIElementType="Adapter" IsExtension="false" IsFinal="true" IsPreserves="true" IsDefaultGenerator="true" ComponentDisplayName="GreetingReceiver" xmlns:gen="http://www.sap.hci.adk.com/gen" xmlns:bp="http://www.adk.gen/xmlns/blueprint"> <Variant VariantName="Greet Component Receiver" VariantId="ctype::AdapterVariant/cname::GreetingReceiver/vendor::sap/tp::greet/mp::greet/direction::Receiver" IsRequestResponse="true" MetadataVersion="2.0" gen:RuntimeComponentBaseUri="greet" AttachmentBehavior="Preserve"> <InputContent Cardinality="1" Scope="outsidepool" MessageCardinality="1" isStreaming="false"> <Content> <ContentType>Any</ContentType> <Schema xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"></Schema> </Content> </InputContent> <OutputContent Cardinality="1" Scope="outsidepool" MessageCardinality="1" isStreaming="false"> <Content> <ContentType>Any</ContentType> <Schema xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"></Schema> </Content> </OutputContent> <Tab id="connection"> <GuiLabels guid="63acce24-526d-41ab-861b-9efe17634e6a"> <Label language="EN">Decorator Params</Label> <Label language="DE">Decorator Params</Label> </GuiLabels> <AttributeGroup id="defaultUriParameter"> <Name xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">URI Setting</Name> <GuiLabels guid="aaa855ba-3973-460c-bbea-e7fe5b169d87"> <Label language="EN">URI Setting</Label> <Label language="DE">URI Setting</Label> </GuiLabels> <AttributeReference> <ReferenceName>head</ReferenceName> <description>Configure Head</description> </AttributeReference> <AttributeReference> <ReferenceName>append</ReferenceName> <description>Configure Appender</description> </AttributeReference> <AttributeReference> <ReferenceName>tail</ReferenceName> <description>Configure Tail</description> </AttributeReference> </AttributeGroup> <AttributeGroup id="greetEndpoint"> <Name xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">Greet Endpoint</Name> <GuiLabels guid="97be709d-90c9-4468-9277-b16a39737653"> <Label language="EN">Greet Endpoint</Label> <Label language="DE">Greet Endpoint</Label> </GuiLabels> <AttributeReference> <ReferenceName>name</ReferenceName> <description>Configure Name</description> </AttributeReference> </AttributeGroup> </Tab> </Variant> <AttributeMetadata> <Name>head</Name> <Usage>false</Usage> <DataType>xsd:string</DataType> <Default></Default> <Length></Length> <isparameterized>true</isparameterized> <GuiLabels guid="4eb8910b-f1bc-4398-a9d5-7812740f7520"> <Label language="EN">Head</Label> <Label language="DE">Head</Label> </GuiLabels> </AttributeMetadata> <AttributeMetadata> <Name>append</Name> <Usage>false</Usage> <DataType>xsd:string</DataType> <Default></Default> <Length></Length> <isparameterized>true</isparameterized> <GuiLabels guid="4eb8910b-f1bc-4398-a9d5-7812740f7520"> <Label language="EN">Append</Label> <Label language="DE">Append</Label> </GuiLabels> </AttributeMetadata> <AttributeMetadata> <Name>tail</Name> <Usage>false</Usage> <DataType>xsd:string</DataType> <Default></Default> <Length></Length> <isparameterized>true</isparameterized> <GuiLabels guid="4eb8910b-f1bc-4398-a9d5-7812740f7520"> <Label language="EN">Tail</Label> <Label language="DE">Tail</Label> </GuiLabels> </AttributeMetadata> <AttributeMetadata> <Name>name</Name> <Usage>false</Usage> <DataType>xsd:string</DataType> <Default></Default> <Length></Length> <isparameterized>true</isparameterized> <GuiLabels guid="b9b9e415-3496-4db9-b96c-c0b5f1be6315"> <Label language="EN">Name</Label> <Label language="DE">Name</Label> </GuiLabels> </AttributeMetadata> </ComponentMetadata> |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
36 | |
25 | |
17 | |
13 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 |