[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wsf-c-dev
Subject:    Re: [Dev] [ES][Doc] Adding a new sample Artifact of an Asset Type(RXT) in Enterprise Store
From:       Shabir Mohamed <shabir () wso2 ! com>
Date:       2015-09-30 6:34:44
Message-ID: CA+0CxByjZ1E1gKS5KDSvK6LWeoO_cq8Z=Q31hxbCw+bnJ8hqjA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,

Looks Good :D. Cheers and Thanks to you too!!!!

-------------------------------------
*Shabir Mohamed*
*Software Engineer*
WSO2 Inc.; http://wso2.com
Email: shabir@wso2.com <ayyoob@wso2.com>
Mobile: +94 77 3516019 | +94 71 6583393

On Wed, Sep 30, 2015 at 11:49 AM, Mariangela Hills <mariangela@wso2.com>
wrote:

> Hi Shabir,
>
> Please note that I have updated [1] based on the feedback in this thread
> and also based on the points we came up with after testing this tutorial
> in-depth. Thanks, for all the help!
>
> [1]
> https://docs.wso2.com/display/ES200/Adding+a+Sample+Asset+for+a+New+Asset=
+Type+at+Server+Startup
>
> Regards,
> Mariangela
>
>
> *Mariangela Hills*
> Senior Technical Writer - WSO2, Inc. http://wso2.com
> Committer and PMC member - Apache Stratos
> email:mariangela@wso2.com | mobile: +94 773 500185
>
> On Wed, Sep 16, 2015 at 10:27 AM, Mariangela Hills <mariangela@wso2.com>
> wrote:
>
>> *@Shabir*
>> Sorry, for the late reply! I will add these common mistakes as tips in
>> the ES wiki docs.
>>
>> *@Jackie*
>> Jackie, thanks for your feedback! Yes, I too think that adding this
>> information in a "Tips" macro will be useful to the user. In addition, I
>> will do the other corrections that you mentioned.
>>
>> Regards,
>> Mariangela
>>
>>
>> *Mariangela Hills*
>> Senior Technical Writer - WSO2, Inc. http://wso2.com
>> Committer and PMC member - Apache Stratos
>> email:mariangela@wso2.com | mobile: +94 773 500185
>>
>> On Wed, Sep 16, 2015 at 5:22 AM, Jackie Wheeler <jackie@wso2.com> wrote:
>>
>>> I think we can add a "Tips" section at the bottom and have a bulleted
>>> list of these items, such as "Be sure to add the lifecycle definition t=
o
>>> the path."
>>>
>>> Mari, the note in the middle of the page is missing content in the
>>> second sentence. Currently it says:
>>>
>>> You need to define the latter mentioned asset specific attributes in a
>>> JSON file, which has the same name as the asset type RXT (e.g.,
>>> RXT_NAME.json). In this case
>>>
>>> Also, at the end of the page, the last sentence is missing a word:
>>>
>>> In this tutorial, as we have set the lifecycle status to  the artifact
>>> is visible in the Store.
>>>
>>> Cheers,
>>> Jackie
>>>
>>>
>>> On Mon, Sep 14, 2015 at 7:44 AM, Shabir Mohamed <shabir@wso2.com> wrote=
:
>>>
>>>> Hi Mariangela,
>>>>
>>>> I thought the "Common Mistakes"would also be useful for someone who
>>>> reads the documentation.
>>>>
>>>> Isn't it within our documentation guidelines to add something like
>>>> that??? If so that's fine :D
>>>>
>>>> -------------------------------------
>>>> *Shabir Mohamed*
>>>> *Software Engineer*
>>>> WSO2 Inc.; http://wso2.com
>>>> Email: shabir@wso2.com <ayyoob@wso2.com>
>>>> Mobile: +94 77 3516019 | +94 71 6583393
>>>>
>>>> On Mon, Sep 14, 2015 at 8:09 PM, Shabir Mohamed <shabir@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Thanks a lot:D
>>>>>
>>>>> Regards
>>>>>
>>>>> -------------------------------------
>>>>> *Shabir Mohamed*
>>>>> *Software Engineer*
>>>>> WSO2 Inc.; http://wso2.com
>>>>> Email: shabir@wso2.com <ayyoob@wso2.com>
>>>>> Mobile: +94 77 3516019 | +94 71 6583393
>>>>>
>>>>> On Mon, Sep 14, 2015 at 6:45 PM, Mariangela Hills <mariangela@wso2.co=
m
>>>>> > wrote:
>>>>>
>>>>>> Hi Shabir,
>>>>>> I have documented this in [1].
>>>>>>
>>>>>> [1]
>>>>>> https://docs.wso2.com/display/ES200/Adding+a+New+Sample+Asset+for+an=
+Asset+Type+at+Server+Startup
>>>>>>
>>>>>> Regards,
>>>>>> Mariangela
>>>>>>
>>>>>>
>>>>>> *Mariangela Hills*
>>>>>> Senior Technical Writer - WSO2, Inc. http://wso2.com
>>>>>> Committer and PMC member - Apache Stratos
>>>>>> email:mariangela@wso2.com | mobile: +94 773 500185
>>>>>>
>>>>>> On Fri, Sep 11, 2015 at 3:32 PM, Mariangela Hills <
>>>>>> mariangela@wso2.com> wrote:
>>>>>>
>>>>>>> I created a JIRA [1] to track this task.
>>>>>>>
>>>>>>> [1] https://wso2.org/jira/browse/DOCUMENTATION-2366
>>>>>>>
>>>>>>> Regards,
>>>>>>> Mariangela
>>>>>>>
>>>>>>>
>>>>>>> *Mariangela Hills*
>>>>>>> Senior Technical Writer - WSO2, Inc. http://wso2.com
>>>>>>> Committer and PMC member - Apache Stratos
>>>>>>> email:mariangela@wso2.com | mobile: +94 773 500185
>>>>>>>
>>>>>>> On Fri, Sep 11, 2015 at 10:25 AM, Mariangela Hills <
>>>>>>> mariangela@wso2.com> wrote:
>>>>>>>
>>>>>>>> Thanks, Shabir! I will add this to the docs!
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>> Mariangela
>>>>>>>>
>>>>>>>>
>>>>>>>> *Mariangela Hills*
>>>>>>>> Senior Technical Writer - WSO2, Inc. http://wso2.com
>>>>>>>> Committer and PMC member - Apache Stratos
>>>>>>>> email:mariangela@wso2.com | mobile: +94 773 500185
>>>>>>>>
>>>>>>>> On Thu, Sep 10, 2015 at 10:47 PM, Shabir Mohamed <shabir@wso2.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Also to be added to *Common Mistakes:*
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>    - The *"name" *attribute and the *"overview_name"* attribute,
>>>>>>>>>    both needs to have the same Value, (Ex: 'RaspberryPi' & 'Raspb=
erry Pi' will
>>>>>>>>>    not work). *"name"* is the Artifact-Name and "*overview_name*"
>>>>>>>>>    is the value used when creating the resource path in the regis=
try.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> -------------------------------------
>>>>>>>>> *Shabir Mohamed*
>>>>>>>>> *Software Engineer*
>>>>>>>>> WSO2 Inc.; http://wso2.com
>>>>>>>>> Email: shabir@wso2.com <ayyoob@wso2.com>
>>>>>>>>> Mobile: +94 77 3516019 | +94 71 6583393
>>>>>>>>>
>>>>>>>>> On Thu, Sep 10, 2015 at 9:10 PM, Shabir Mohamed <shabir@wso2.com>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> Hi,
>>>>>>>>>>
>>>>>>>>>> I have been trying to do $subject and found no relevant
>>>>>>>>>> documentation. Hence, I backtracked the path as to how the exist=
ing
>>>>>>>>>> sample-artifacts of the default asset-types (i.e.: gadget & site=
) are added
>>>>>>>>>> when running the WSO2 - Enterprise Store 2.0.
>>>>>>>>>>
>>>>>>>>>> *As per my study these are the necessary steps required to do
>>>>>>>>>> $subject:*
>>>>>>>>>>
>>>>>>>>>> Say the Asset-type for which we want to add a sample artifact ha=
s
>>>>>>>>>> its *"RXT"* name as *"device.rxt". **(sample txt attached in the
>>>>>>>>>> email)*
>>>>>>>>>>
>>>>>>>>>> 1. *The sample artifacts per asset-type are found at path:*
>>>>>>>>>>
>>>>>>>>>>    -
>>>>>>>>>>    *<ES_HOME>/repository/deployment/server/jaggeryapps/publisher=
/samples/assets*
>>>>>>>>>>    - Create a folder by the plural-name of the asset-type(rxt)
>>>>>>>>>>    in this path. In this example we make a folder by the name
>>>>>>>>>>    *"devices"*.
>>>>>>>>>>    - All sample/default artifacts of asset-type *"device" *shall
>>>>>>>>>>    go into this folder.
>>>>>>>>>>
>>>>>>>>>> 2. The parent installation script - *"install.js"* - for all
>>>>>>>>>> samples is found at the above mentioned path. Any *"install.js"*
>>>>>>>>>> scripts found within sub-folders *(ex: devices, gadgets & sites)=
*
>>>>>>>>>> of this path will over-ride the parent script to perform any spe=
cific
>>>>>>>>>> operations relavant to that asset-type.
>>>>>>>>>>
>>>>>>>>>>    - copy the sample asset-specific *"install.js"** (attached
>>>>>>>>>>    with this email)* into the folder created in the previous
>>>>>>>>>>    step.
>>>>>>>>>>    - search and change the following tags appropriately in the
>>>>>>>>>>    copied script:
>>>>>>>>>>
>>>>>>>>>>                   *<ASSET_LIFECYCLE>* : LifeCycle definition to
>>>>>>>>>> which the asset-type *(in this example "device") *needs to be
>>>>>>>>>> attached to *(ex: DeviceLifeCycle)*. Should be one of the
>>>>>>>>>> lifecycle definitions found inside:
>>>>>>>>>> *<ES_HOME>/repository/deployment/server/jaggeryapps/publisher/ex=
tensions/lifecycles/*
>>>>>>>>>>                   *<ASSET_RXT_NAME>* : The *"rxt"* name of the
>>>>>>>>>> asset-type for which the samples are to be made *(in this
>>>>>>>>>> example "device"). *
>>>>>>>>>>
>>>>>>>>>>    - Save and close the *"install.js"* script.
>>>>>>>>>>
>>>>>>>>>> 3. Create a folder by the name of the sample-artifact inside the
>>>>>>>>>> asset-specific-parent-folder created in Step 1. In this example =
lets call
>>>>>>>>>> our sample artifact of asset-type *"device"* as *"firealarm"*.
>>>>>>>>>> We can continue adding any number of folders *per artifact* of
>>>>>>>>>> the asset-type *(ex: firearm, raspberryPi, arduino & etc)*.
>>>>>>>>>> Artifact specific details go into these folders.
>>>>>>>>>>
>>>>>>>>>> *The folder structure
>>>>>>>>>> at- <ES_HOME>/repository/deployment/server/jaggeryapps/publisher=
/samples should
>>>>>>>>>> look as follows:*
>>>>>>>>>>
>>>>>>>>>> *.*
>>>>>>>>>>
>>>>>>>>>> *=E2=94=94=E2=94=80=E2=94=80 samples*
>>>>>>>>>>
>>>>>>>>>> *    =E2=94=94=E2=94=80=E2=94=80 assets*
>>>>>>>>>>
>>>>>>>>>> *        =E2=94=9C=E2=94=80=E2=94=80 devices*
>>>>>>>>>>
>>>>>>>>>> *        =E2=94=82   =E2=94=9C=E2=94=80=E2=94=80 firealarm*
>>>>>>>>>>
>>>>>>>>>> *        =E2=94=82   =E2=94=82   =E2=94=9C=E2=94=80=E2=94=80 ban=
ner.png*
>>>>>>>>>>
>>>>>>>>>> *        =E2=94=82   =E2=94=82   =E2=94=9C=E2=94=80=E2=94=80 dev=
ice.json*
>>>>>>>>>>
>>>>>>>>>> *        =E2=94=82   =E2=94=82   =E2=94=94=E2=94=80=E2=94=80 thu=
mbnail.png*
>>>>>>>>>>
>>>>>>>>>> *        =E2=94=82   =E2=94=94=E2=94=80=E2=94=80 install.js*
>>>>>>>>>>
>>>>>>>>>> *        =E2=94=94=E2=94=80=E2=94=80 install.js*
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> 4. Now we have to specify the asset specific attributes to be
>>>>>>>>>> used when creating our sample (firealarm) artifact. These detail=
s are
>>>>>>>>>> provided as a *"json" *file with the same name as the
>>>>>>>>>> asset-type/rxt *(<RXT_NAME>.json)*.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>    - In our example this is found inside the *"firealarm"*
>>>>>>>>>>    artifact folder as *"device.json"*. For every additional
>>>>>>>>>>    artifact-folder that is declared, there will be a correspondi=
ng
>>>>>>>>>>    *"device.json" *file with relevant attribute details. *(The
>>>>>>>>>>    one used for declaring "firealarm" artifact is attached)*
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>    - Additionally, any images used for thumbnail & banner views
>>>>>>>>>>    of the artifact in the store also need to go into the artifac=
t specific
>>>>>>>>>>    folder. The path to these images need to be given appropriate=
ly in the *<RXT_NAME>.json
>>>>>>>>>>    *file. (See attached sample for clarity)
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> 5. Make the following additions in the *"publisher-tenant.json"*
>>>>>>>>>> file found at path:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> *<ES_HOME>/repository/deployment/server/jaggeryapps/publisher/co=
nfig*
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>    - Add the asset-type *("device" in this example)* to the
>>>>>>>>>>    *"assets"* unit.
>>>>>>>>>>
>>>>>>>>>>                         *"assets":["gadget","site", "device"],*
>>>>>>>>>>
>>>>>>>>>>    - Add the plural-name *("devices" in this example)* of the
>>>>>>>>>>    asset-type *(by which the folder was made in Step 1)* to the
>>>>>>>>>>    sub-unit *"collections"* nested under the unit -
>>>>>>>>>>    *"accessible".*
>>>>>>>>>>
>>>>>>>>>>                        *"accessible": [{*
>>>>>>>>>> *                                "context":
>>>>>>>>>> "/_system/governance",*
>>>>>>>>>> *                                "collections": ["gadgets",
>>>>>>>>>> "sites", "ebooks", "devices"],*
>>>>>>>>>> *                                "actions":
>>>>>>>>>> ["http://www.wso2.org/projects/registry/actions/get
>>>>>>>>>> <http://www.wso2.org/projects/registry/actions/get>","http://www=
.wso2.org/projects/registry/actions/add
>>>>>>>>>> <http://www.wso2.org/projects/registry/actions/add>",
>>>>>>>>>> "http://www.wso2.org/projects/registry/actions/delete
>>>>>>>>>> <http://www.wso2.org/projects/registry/actions/delete>", "author=
ize"]*
>>>>>>>>>> *                        }],*
>>>>>>>>>>
>>>>>>>>>>    - Add a new "*type"* by the same plural-name of the
>>>>>>>>>>    asset-type for sub-unit *"assetData" *nested under the unit -
>>>>>>>>>>    *"defaultAssets"*.
>>>>>>>>>>
>>>>>>>>>>                       *"defaultAssets": {*
>>>>>>>>>> *                               "root": "/samples/assets",*
>>>>>>>>>> *                               "assetData": [{*
>>>>>>>>>> *                                        "type": "gadgets",*
>>>>>>>>>> *                                        "ignore":
>>>>>>>>>> ["agricultural-land", "intro-gadget-1", "intro-gadget-2",
>>>>>>>>>> "gadget-template-explorer", "gadget-explorer", "co2-emission",
>>>>>>>>>> "electric-power", "energy-use", "greenhouse-gas"]*
>>>>>>>>>> *                                }, {*
>>>>>>>>>> *                                        "type": "ebooks"*
>>>>>>>>>> *                                }, {*
>>>>>>>>>> *                                        "type": "sites"*
>>>>>>>>>> *                                }, {*
>>>>>>>>>> *                                        "type": "devices"*
>>>>>>>>>> *                               }]*
>>>>>>>>>> *                       },*
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Now, if you restart the server (WSO2-ES), the new sample artifac=
t
>>>>>>>>>> should get created for the specific asset-type. This can be view=
ed at the
>>>>>>>>>> Publisher-UI. The artifact will be listed under the asset-type i=
n the
>>>>>>>>>> Store-UI according to the lifecycle state mentioned for the
>>>>>>>>>> *"overview_status"* attribute in the *<RXT_NAME>.json* file. In
>>>>>>>>>> our example the artifact will be visible in the Store-UI, since =
we have set
>>>>>>>>>> the lifecycle status to *"PUBLISHED"*.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> *Common Mistakes:*
>>>>>>>>>>
>>>>>>>>>>    - Missing lifecycle definition in path:
>>>>>>>>>>    *<ES_HOME>/repository/deployment/server/jaggeryapps/publisher=
/extensions/lifecycles/*
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>    -
>>>>>>>>>> *In-appropiate attribute naming in the Asset-RXT file for the
>>>>>>>>>>    attributes: *
>>>>>>>>>>
>>>>>>>>>>                   *Ex:
>>>>>>>>>>  shortName, singularLabel, pluralLabel, <storagePath>....</stora=
gePath>*
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Please do inform me of anything that I have missed or included
>>>>>>>>>> redundantly.
>>>>>>>>>>
>>>>>>>>>> Regards
>>>>>>>>>> -------------------------------------
>>>>>>>>>> *Shabir Mohamed*
>>>>>>>>>> *Software Engineer*
>>>>>>>>>> WSO2 Inc.; http://wso2.com
>>>>>>>>>> Email: shabir@wso2.com <ayyoob@wso2.com>
>>>>>>>>>> Mobile: +94 77 3516019 | +94 71 6583393
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> You received this message because you are subscribed to the Googl=
e
>>>>>>>>> Groups "WSO2 Documentation Group" group.
>>>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>>>> send an email to documentation+unsubscribe@wso2.com.
>>>>>>>>> For more options, visit
>>>>>>>>> https://groups.google.com/a/wso2.com/d/optout.
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "WSO2 Documentation Group" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to documentation+unsubscribe@wso2.com.
>>>> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>>>>
>>>
>>>
>>>
>>> --
>>> *Jackie Wheeler*
>>> VP, Technical Content
>>> WSO2, Inc.
>>> Mobile: +1 510 725-2876
>>> http://wso2.com/
>>>
>>
>>
>

[Attachment #5 (text/html)]

<div dir="ltr">Hi,<div><br></div><div>Looks Good :D. Cheers and Thanks to you \
too!!!!</div></div><div class="gmail_extra"><br clear="all"><div><div \
class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div \
dir="ltr"><div dir="ltr"><span \
style="font-size:small">-------------------------------------</span><b \
style="color:rgb(136,136,136)"><br></b></div><div dir="ltr"><b \
style="color:rgb(136,136,136)">Shabir Mohamed</b><br \
style="color:rgb(136,136,136)"><div \
style="color:rgb(136,136,136)"><b><div></div></b></div><div \
style="color:rgb(136,136,136)"><b>Software Engineer</b></div><div \
style="color:rgb(136,136,136)">WSO2 Inc.;  <a href="http://wso2.com/" \
style="color:rgb(17,85,204)" target="_blank">http://wso2.com</a><br>Email:  <a \
href="mailto:ayyoob@wso2.com" style="color:rgb(17,85,204)" \
target="_blank">shabir@wso2.com</a>  </div><div \
style="color:rgb(136,136,136)">Mobile: +94 77 3516019 | +94 71 \
6583393</div></div></div></div></div></div></div></div></div></div> <br><div \
class="gmail_quote">On Wed, Sep 30, 2015 at 11:49 AM, Mariangela Hills <span \
dir="ltr">&lt;<a href="mailto:mariangela@wso2.com" \
target="_blank">mariangela@wso2.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Hi Shabir,<div><br></div><div>Please note that \
I have updated [1] based on the feedback in this thread and also based on the points \
we came up with after testing this tutorial in-depth. Thanks, for all the \
help!</div><div><br></div><div>[1]  <a \
href="https://docs.wso2.com/display/ES200/Adding+a+Sample+Asset+for+a+New+Asset+Type+at+Server+Startup" \
target="_blank">https://docs.wso2.com/display/ES200/Adding+a+Sample+Asset+for+a+New+Asset+Type+at+Server+Startup</a></div></div><div \
class="gmail_extra"><span class=""><br clear="all"><div><div><div dir="ltr"><div><div \
dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div \
dir="ltr"><div>Regards,</div><div dir="ltr">Mariangela</div><div \
dir="ltr"><br><div><br></div><div><div><font size="1" color="#000000" face="verdana, \
sans-serif"><b>Mariangela Hills</b></font></div><div><font color="#666666" \
style="font-family:verdana,sans-serif;font-size:x-small">Senior Technical Writer -  \
</font><span style="font-family:verdana,sans-serif;font-size:x-small;color:rgb(102,102,102)">WSO2, \
Inc.  </span><a href="http://wso2.com/" \
style="font-family:verdana,sans-serif;font-size:x-small;color:rgb(17,85,204)" \
target="_blank">http://wso2.com</a><br><span \
style="font-family:verdana,sans-serif;font-size:x-small"><font \
color="#666666">Committer and PMC member - Apache \
Stratos</font></span><br></div><div><span \
style="font-family:verdana,sans-serif;font-size:x-small">email:<a \
href="mailto:mariangela@wso2.com" target="_blank">mariangela@wso2.com</a>  | mobile:  \
</span><a value="+94777226711" style="color:rgb(102,102,102)"><font face="verdana, \
sans-serif" size="1">+94 773 \
500185</font></a></div></div></div></div></div></div></div></div></div></div></div></div>
 <br></span><div><div class="h5"><div class="gmail_quote">On Wed, Sep 16, 2015 at \
10:27 AM, Mariangela Hills <span dir="ltr">&lt;<a href="mailto:mariangela@wso2.com" \
target="_blank">mariangela@wso2.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><b>@Shabir</b><br>Sorry, for the late reply! I \
will add these common mistakes as tips in the ES wiki \
docs.<div><br></div><div><b>@Jackie</b></div><div>Jackie, thanks for your feedback! \
Yes, I too think that adding this information in a &quot;Tips&quot; macro will be \
useful to the user. In addition, I will do the other corrections that you mentioned.  \
</div><div class="gmail_extra"><span><br clear="all"><div><div><div \
dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div \
dir="ltr"><div>Regards,</div><div dir="ltr">Mariangela</div><div \
dir="ltr"><br><div><br></div><div><div><font size="1" color="#000000" face="verdana, \
sans-serif"><b>Mariangela Hills</b></font></div><div><font color="#666666" \
style="font-family:verdana,sans-serif;font-size:x-small">Senior Technical Writer -  \
</font><span style="font-family:verdana,sans-serif;font-size:x-small;color:rgb(102,102,102)">WSO2, \
Inc.  </span><a href="http://wso2.com/" \
style="font-family:verdana,sans-serif;font-size:x-small;color:rgb(17,85,204)" \
target="_blank">http://wso2.com</a><br><span \
style="font-family:verdana,sans-serif;font-size:x-small"><font \
color="#666666">Committer and PMC member - Apache \
Stratos</font></span><br></div><div><span \
style="font-family:verdana,sans-serif;font-size:x-small">email:<a \
href="mailto:mariangela@wso2.com" target="_blank">mariangela@wso2.com</a>  | mobile:  \
</span><a value="+94777226711" style="color:rgb(102,102,102)"><font face="verdana, \
sans-serif" size="1">+94 773 \
500185</font></a></div></div></div></div></div></div></div></div></div></div></div></div>
 <br></span><div><div><div class="gmail_quote">On Wed, Sep 16, 2015 at 5:22 AM, \
Jackie Wheeler <span dir="ltr">&lt;<a href="mailto:jackie@wso2.com" \
target="_blank">jackie@wso2.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div><div>I think we can add a \
&quot;Tips&quot; section at the bottom and have a bulleted list of these items, such \
as &quot;Be sure to add the lifecycle definition to the \
path.&quot;<br><br></div>Mari, the note in the middle of the page is missing content \
in the second sentence. Currently it says: <br><br><div style="margin-left:40px">You \
need to define the latter mentioned <span style="color:rgb(34,34,34)">asset specific \
attributes in a JSON file, which has the same name as the asset type RXT (e.g., \
<code>RXT_NAME.json</code>). In this case</span><br></div><div \
style="margin-left:40px"><span style="color:rgb(34,34,34)"></span></div><span \
style="color:rgb(34,34,34)"><br></span></div><span style="color:rgb(34,34,34)">Also, \
at the end of the page, the last sentence is missing a word:<br></span><br><div \
style="margin-left:40px"><span style="color:rgb(34,34,34)">In this tutorial, as <span \
style="color:rgb(34,34,34)">we have set the lifecycle status to  </span></span><span \
style="color:rgb(34,34,34)">  the artifact is visible in the Store</span><span \
style="color:rgb(34,34,34)">.</span> <br></div><div><span \
style="color:rgb(34,34,34)"><br></span></div><div><span \
style="color:rgb(34,34,34)">Cheers,<br></span></div><div><span \
style="color:rgb(34,34,34)">Jackie<br></span></div><div><span \
style="color:rgb(34,34,34)"></span><span style="color:rgb(34,34,34)"></span> \
<br></div></div><div class="gmail_extra"><div><div><br><div class="gmail_quote">On \
Mon, Sep 14, 2015 at 7:44 AM, Shabir Mohamed <span dir="ltr">&lt;<a \
href="mailto:shabir@wso2.com" target="_blank">shabir@wso2.com</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"><div dir="ltr">Hi Mariangela,<div><br></div><div>I \
thought the &quot;Common Mistakes&quot;would also be useful for someone who reads the \
documentation.</div><div><br></div><div>Isn&#39;t it within our documentation \
guidelines to add something like that??? If so that&#39;s fine :D</div></div><div \
class="gmail_extra"><span><br clear="all"><div><div><div dir="ltr"><div><div \
dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><span \
style="font-size:small">-------------------------------------</span><b \
style="color:rgb(136,136,136)"><br></b></div><div dir="ltr"><b \
style="color:rgb(136,136,136)">Shabir Mohamed</b><br \
style="color:rgb(136,136,136)"><div \
style="color:rgb(136,136,136)"><b><div></div></b></div><div \
style="color:rgb(136,136,136)"><b>Software Engineer</b></div><div \
style="color:rgb(136,136,136)">WSO2 Inc.;  <a href="http://wso2.com/" \
style="color:rgb(17,85,204)" target="_blank">http://wso2.com</a><br>Email:  <a \
href="mailto:ayyoob@wso2.com" style="color:rgb(17,85,204)" \
target="_blank">shabir@wso2.com</a>  </div><div \
style="color:rgb(136,136,136)">Mobile: <a href="tel:%2B94%2077%203516019" \
value="+94773516019" target="_blank">+94 77 3516019</a> | <a \
href="tel:%2B94%2071%206583393" value="+94716583393" target="_blank">+94 71 \
6583393</a></div></div></div></div></div></div></div></div></div></div> \
<br></span><div><div><div class="gmail_quote">On Mon, Sep 14, 2015 at 8:09 PM, Shabir \
Mohamed <span dir="ltr">&lt;<a href="mailto:shabir@wso2.com" \
target="_blank">shabir@wso2.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>Thanks a \
lot:D</div><div><br></div><div>Regards</div></div><div class="gmail_extra"><span><br \
clear="all"><div><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div \
dir="ltr"><div dir="ltr"><span \
style="font-size:small">-------------------------------------</span><b \
style="color:rgb(136,136,136)"><br></b></div><div dir="ltr"><b \
style="color:rgb(136,136,136)">Shabir Mohamed</b><br \
style="color:rgb(136,136,136)"><div \
style="color:rgb(136,136,136)"><b><div></div></b></div><div \
style="color:rgb(136,136,136)"><b>Software Engineer</b></div><div \
style="color:rgb(136,136,136)">WSO2 Inc.;  <a href="http://wso2.com/" \
style="color:rgb(17,85,204)" target="_blank">http://wso2.com</a><br>Email:  <a \
href="mailto:ayyoob@wso2.com" style="color:rgb(17,85,204)" \
target="_blank">shabir@wso2.com</a>  </div><div \
style="color:rgb(136,136,136)">Mobile: <a href="tel:%2B94%2077%203516019" \
value="+94773516019" target="_blank">+94 77 3516019</a> | <a \
href="tel:%2B94%2071%206583393" value="+94716583393" target="_blank">+94 71 \
6583393</a></div></div></div></div></div></div></div></div></div></div> \
<br></span><div><div><div class="gmail_quote">On Mon, Sep 14, 2015 at 6:45 PM, \
Mariangela Hills <span dir="ltr">&lt;<a href="mailto:mariangela@wso2.com" \
target="_blank">mariangela@wso2.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div>Hi Shabir,</div>I have documented this in \
[1].<div><br></div><div>[1]  <a \
href="https://docs.wso2.com/display/ES200/Adding+a+New+Sample+Asset+for+an+Asset+Type+at+Server+Startup" \
target="_blank">https://docs.wso2.com/display/ES200/Adding+a+New+Sample+Asset+for+an+Asset+Type+at+Server+Startup</a></div></div><div \
class="gmail_extra"><span><br clear="all"><div><div><div dir="ltr"><div><div \
dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div \
dir="ltr"><div>Regards,</div><div dir="ltr">Mariangela</div><div \
dir="ltr"><br><div><br></div><div><div><font face="verdana, sans-serif" \
color="#000000" size="1"><b>Mariangela Hills</b></font></div><div><font \
style="font-family:verdana,sans-serif;font-size:x-small" color="#666666">Senior \
Technical Writer -  </font><span \
style="font-family:verdana,sans-serif;font-size:x-small;color:rgb(102,102,102)">WSO2, \
Inc.  </span><a href="http://wso2.com/" \
style="font-family:verdana,sans-serif;font-size:x-small;color:rgb(17,85,204)" \
target="_blank">http://wso2.com</a><br><span \
style="font-family:verdana,sans-serif;font-size:x-small"><font \
color="#666666">Committer and PMC member - Apache \
Stratos</font></span><br></div><div><span \
style="font-family:verdana,sans-serif;font-size:x-small">email:<a \
href="mailto:mariangela@wso2.com" target="_blank">mariangela@wso2.com</a>  | mobile:  \
</span><a value="+94777226711" style="color:rgb(102,102,102)"><font face="verdana, \
sans-serif" size="1">+94 773 \
500185</font></a></div></div></div></div></div></div></div></div></div></div></div></div>
 <br></span><div><div><div class="gmail_quote">On Fri, Sep 11, 2015 at 3:32 PM, \
Mariangela Hills <span dir="ltr">&lt;<a href="mailto:mariangela@wso2.com" \
target="_blank">mariangela@wso2.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">I created a JIRA [1] to track this \
task.<div><br></div><div>[1]  <a \
href="https://wso2.org/jira/browse/DOCUMENTATION-2366" \
target="_blank">https://wso2.org/jira/browse/DOCUMENTATION-2366</a></div></div><div \
class="gmail_extra"><span><br clear="all"><div><div><div dir="ltr"><div><div \
dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div \
dir="ltr"><div>Regards,</div><div dir="ltr">Mariangela</div><div \
dir="ltr"><br><div><br></div><div><div><font face="verdana, sans-serif" \
color="#000000" size="1"><b>Mariangela Hills</b></font></div><div><font \
style="font-family:verdana,sans-serif;font-size:x-small" color="#666666">Senior \
Technical Writer -  </font><span \
style="font-family:verdana,sans-serif;font-size:x-small;color:rgb(102,102,102)">WSO2, \
Inc.  </span><a href="http://wso2.com/" \
style="font-family:verdana,sans-serif;font-size:x-small;color:rgb(17,85,204)" \
target="_blank">http://wso2.com</a><br><span \
style="font-family:verdana,sans-serif;font-size:x-small"><font \
color="#666666">Committer and PMC member - Apache \
Stratos</font></span><br></div><div><span \
style="font-family:verdana,sans-serif;font-size:x-small">email:<a \
href="mailto:mariangela@wso2.com" target="_blank">mariangela@wso2.com</a>  | mobile:  \
</span><a value="+94777226711" style="color:rgb(102,102,102)"><font face="verdana, \
sans-serif" size="1">+94 773 \
500185</font></a></div></div></div></div></div></div></div></div></div></div></div></div>
 <br></span><div><div><div class="gmail_quote">On Fri, Sep 11, 2015 at 10:25 AM, \
Mariangela Hills <span dir="ltr">&lt;<a href="mailto:mariangela@wso2.com" \
target="_blank">mariangela@wso2.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Thanks, Shabir! I will add this to the \
docs!</div><div class="gmail_extra"><br clear="all"><div><div><div \
dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div \
dir="ltr"><div>Regards,</div><div dir="ltr">Mariangela</div><span><font \
<br><div class="gmail_quote">On Thu, Sep 10, 2015 at 10:47 PM, Shabir Mohamed <span \
dir="ltr">&lt;<a href="mailto:shabir@wso2.com" \
target="_blank">shabir@wso2.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Also to be added to  <b \
style="font-size:12.960000038146973px"><u>Common Mistakes:</u></b><div><b \
style="font-size:12.960000038146973px"><u><br></u></b></div><div><ul><li>The \
<b>&quot;name&quot; </b>attribute and the <b>&quot;overview_name&quot;</b> attribute, \
both needs to have the same Value, (Ex: &#39;RaspberryPi&#39; &amp; &#39;Raspberry \
Pi&#39; will not work). <b>&quot;name&quot;</b> is the Artifact-Name and \
&quot;<b>overview_name</b>&quot; is the value used when creating the resource path in \
the registry.  </li></ul></div></div><div class="gmail_extra"><span><br \
clear="all"><div><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div \
dir="ltr"><div dir="ltr"><span \
style="font-size:small">-------------------------------------</span><b \
style="color:rgb(136,136,136)"><br></b></div><div dir="ltr"><b \
style="color:rgb(136,136,136)">Shabir Mohamed</b><br \
style="color:rgb(136,136,136)"><div \
style="color:rgb(136,136,136)"><b><div></div></b></div><div \
style="color:rgb(136,136,136)"><b>Software Engineer</b></div><div \
style="color:rgb(136,136,136)">WSO2 Inc.;  <a href="http://wso2.com/" \
style="color:rgb(17,85,204)" target="_blank">http://wso2.com</a><br>Email:  <a \
href="mailto:ayyoob@wso2.com" style="color:rgb(17,85,204)" \
target="_blank">shabir@wso2.com</a>  </div><div \
style="color:rgb(136,136,136)">Mobile: <a href="tel:%2B94%2077%203516019" \
value="+94773516019" target="_blank">+94 77 3516019</a> | <a \
href="tel:%2B94%2071%206583393" value="+94716583393" target="_blank">+94 71 \
6583393</a></div></div></div></div></div></div></div></div></div></div> \
<br></span><div><div><div class="gmail_quote">On Thu, Sep 10, 2015 at 9:10 PM, Shabir \
Mohamed <span dir="ltr">&lt;<a href="mailto:shabir@wso2.com" \
target="_blank">shabir@wso2.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I have been trying to \
do $subject and found no relevant documentation. Hence, I backtracked the path as to \
how the existing sample-artifacts of the default asset-types (i.e.: gadget &amp; \
site) are added when running the WSO2 - Enterprise Store \
2.0.</div><div><br></div><div><b><u>As per my study these are the necessary steps \
required to do $subject:</u></b></div><div><br></div><div>Say the Asset-type for \
which we want to add a sample artifact has its <b>&quot;RXT&quot;</b> name as \
<b>&quot;device.rxt&quot;. </b><i>(sample  txt attached in the \
email)</i></div><div><b><br></b></div><div>1. <i>The sample artifacts per asset-type \
are found at path:</i></div><div><ul><li><b><font \
style="background-color:rgb(182,215,168)" face="monospace, monospace" \
color="#cc0000">&lt;ES_HOME&gt;/repository/deployment/server/jaggeryapps/publisher/samples/assets</font></b><br></li><li>Create \
a folder by the plural-name of the asset-type(rxt) in this path. In this example we \
make a folder by the name <b>&quot;devices&quot;</b>.<br></li><li>All sample/default \
artifacts of asset-type <b>&quot;device&quot; </b>shall go into this \
folder.</li></ul></div><div>2. The parent installation script - \
<b>&quot;install.js&quot;</b> - for all samples is found at the above mentioned path. \
Any <b>&quot;install.js&quot;</b> scripts found within sub-folders <i>(ex: devices, \
gadgets &amp; sites)</i> of this path will over-ride the parent script to perform any \
specific operations relavant to that asset-type.</div><div><ul><li>copy the sample \
asset-specific <b>&quot;install.js&quot;</b><i> (attached with this email)</i> into \
the folder created in the previous step.  <br></li><li>search and change the \
following tags appropriately in the copied script:</li></ul><div><div>                \
<span style="background-color:rgb(244,204,204)"><font \
color="#351c75"><b>&lt;ASSET_LIFECYCLE&gt;</b></font></span>  : LifeCycle definition \
to which the asset-type <i>(in this example  <b>&quot;device&quot;</b>) </i>needs to \
be attached to  <b><i>(ex: DeviceLifeCycle)</i></b>. Should be one of the lifecycle \
definitions found inside:  <span style="background-color:rgb(182,215,168)"><font \
face="monospace, monospace" color="#cc0000"><b>&lt;ES_HOME&gt;<span \
style="font-size:9px">/repository/deployment/server/jaggeryapps/publisher/extensions/lifecycles/</span></b></font></span></div><div> \
<span style="background-color:rgb(244,204,204)"><font \
color="#351c75"><b>&lt;ASSET_RXT_NAME&gt;</b></font></span>  : The  \
<b>&quot;rxt&quot;</b>  name of the asset-type for which the samples are to be made  \
<i>(in this example  <b>&quot;device&quot;</b>).  </i></div></div><ul><li>Save and \
close the <b>&quot;install.js&quot;</b> script.</li></ul>3. Create a folder by the \
name of the sample-artifact inside the asset-specific-parent-folder created in Step \
1. In this example lets call our sample artifact of asset-type \
<i>&quot;device&quot;</i> as <b>&quot;firealarm&quot;</b>. We can continue adding any \
number of folders <b>per artifact</b> of the asset-type <i>(ex: firearm, raspberryPi, \
arduino &amp; etc)</i>. Artifact specific details go into these \
folders.</div><div><br></div><div><i>The folder structure at-  <b><font \
style="background-color:rgb(182,215,168)" face="monospace, monospace" \
color="#cc0000">&lt;ES_HOME&gt;/repository/deployment/server/jaggeryapps/publisher</font></b><b><font \
style="background-color:rgb(182,215,168)" face="monospace, monospace" \
color="#cc0000">/samples  </font></b>should look as \
follows:</i></div><div><i><br></i></div><div><p \
style="margin:0px;font-size:9px;font-family:Monaco"><font \
style="background-color:rgb(255,255,255)" color="#073763"><b>.</b></font></p> <p \
style="margin:0px;font-size:9px;font-family:Monaco"><font \
style="background-color:rgb(255,255,255)" color="#073763"><b>└── \
samples</b></font></p> <p style="margin:0px;font-size:9px;font-family:Monaco"><font \
style="background-color:rgb(255,255,255)" color="#073763"><b>      └── \
assets</b></font></p> <p style="margin:0px;font-size:9px;font-family:Monaco"><font \
style="background-color:rgb(255,255,255)" color="#073763"><b>            ├── \
devices</b></font></p> <p style="margin:0px;font-size:9px;font-family:Monaco"><font \
style="background-color:rgb(255,255,255)" color="#073763"><b>            │     \
├── firealarm</b></font></p> <p \
style="margin:0px;font-size:9px;font-family:Monaco"><font \
style="background-color:rgb(255,255,255)" color="#073763"><b>            │     │  \
├── banner.png</b></font></p> <p \
style="margin:0px;font-size:9px;font-family:Monaco"><font \
style="background-color:rgb(255,255,255)" color="#073763"><b>            │     │  \
├── device.json</b></font></p> <p \
style="margin:0px;font-size:9px;font-family:Monaco"><font \
style="background-color:rgb(255,255,255)" color="#073763"><b>            │     │  \
└── thumbnail.png</b></font></p> <p \
style="margin:0px;font-size:9px;font-family:Monaco"><font \
style="background-color:rgb(255,255,255)" color="#073763"><b>            │     \
└── install.js</b></font></p> <p \
style="margin:0px;font-size:9px;font-family:Monaco"><font \
style="background-color:rgb(255,255,255)" color="#073763"><b>            └── \
install.js</b></font></p></div><div><font \
color="#073763"><b><br></b></font></div><div><br></div><div>4. Now we have to specify \
the asset specific attributes to be used when creating our sample (firealarm) \
artifact. These details are provided as a <b>&quot;json&quot; </b>file with the same \
name as the asset-type/rxt <b><i>(&lt;RXT_NAME&gt;.json)</i></b>.  \
</div><div><br></div><div><ul><li>In our example this is found inside the \
<b>&quot;firealarm&quot;</b> artifact folder as <b>&quot;device.json&quot;</b>. For \
every additional artifact-folder that is declared, there will be a corresponding  \
<b>&quot;device.json&quot;  </b>file with relevant attribute details. <i>(The one \
used for declaring &quot;firealarm&quot; artifact is \
attached)</i></li></ul></div><div><ul><li>Additionally, any images used for thumbnail \
&amp; banner views of the artifact in the store also need to go into the artifact \
specific folder. The path to these images need to be given appropriately in the  <i \
style="font-weight:bold">&lt;RXT_NAME&gt;.json </i>file. (See attached sample for \
clarity)<br></li></ul></div><div><br></div><div>5. Make the following additions in \
the <b><font style="background-color:rgb(217,210,233)" color="#274e13">&quot;<span \
style="font-family:Monaco;font-size:9px">publisher-tenant.json</span>&quot;</font></b> \
file found at path:  </div><div><p style="margin:0px;font-size:9px"><span \
style="background-color:rgb(182,215,168)"><font face="monospace, monospace" \
color="#cc0000"><b>&lt;ES_HOME&gt;/repository/deployment/server/jaggeryapps/publisher/config</b></font></span></p></div><div><br></div><div><ul><li>Add \
the asset-type <i>(<b>&quot;device&quot;</b> in this example)</i> to the \
<b>&quot;assets&quot;</b> unit.</li></ul>                                     <b \
style="background-color:rgb(244,204,204)"><font \
color="#990000">&quot;assets&quot;:[&quot;gadget&quot;,&quot;site&quot;,</font><font \
color="#351c75"> &quot;device&quot;</font><font \
color="#990000">],</font></b><br><ul><li>Add the plural-name  \
<i>(<b>&quot;devices&quot;</b>  in this example)</i>  of the asset-type <i>(by which \
the folder was made in Step 1)</i> to the sub-unit <b>&quot;collections&quot;</b> \
nested under the unit - <b>&quot;accessible&quot;.</b></li></ul>                      \
<b style="background-color:rgb(244,204,204)"><font \
color="#990000">&quot;accessible&quot;: [{</font></b></div><div><b \
style="background-color:rgb(244,204,204)"><font color="#990000">                      \
&quot;context&quot;: &quot;/_system/governance&quot;,</font></b></div><div><b \
style="background-color:rgb(244,204,204)"><font color="#990000">                      \
&quot;collections&quot;: [&quot;gadgets&quot;, &quot;sites&quot;, &quot;ebooks&quot;, \
</font><font color="#351c75">&quot;devices&quot;</font><font \
color="#990000">],</font></b></div><div><b \
style="background-color:rgb(244,204,204)"><font color="#990000">                      \
&quot;actions&quot;: [&quot;<a \
href="http://www.wso2.org/projects/registry/actions/get" \
target="_blank">http://www.wso2.org/projects/registry/actions/get</a>&quot;,&quot;<a \
href="http://www.wso2.org/projects/registry/actions/add" \
target="_blank">http://www.wso2.org/projects/registry/actions/add</a>&quot;, &quot;<a \
href="http://www.wso2.org/projects/registry/actions/delete" \
target="_blank">http://www.wso2.org/projects/registry/actions/delete</a>&quot;, \
&quot;authorize&quot;]</font></b></div><div><font color="#990000"><b \
style="background-color:rgb(244,204,204)">                                    }],</b> \
</font>               <br><ul><li>Add a new &quot;<b>type&quot;</b> by the same \
plural-name of the asset-type for sub-unit  <b>&quot;assetData&quot; </b>nested under \
the unit - <b>&quot;defaultAssets&quot;</b>.</li></ul><div>                           \
<b><font style="background-color:rgb(244,204,204)" \
color="#990000">&quot;defaultAssets&quot;: {</font></b></div><div><b><font \
style="background-color:rgb(244,204,204)" color="#990000">                            \
&quot;root&quot;: &quot;/samples/assets&quot;,</font></b></div><div><b><font \
style="background-color:rgb(244,204,204)" color="#990000">                            \
&quot;assetData&quot;: [{</font></b></div><div><b><font \
style="background-color:rgb(244,204,204)" color="#990000">                            \
&quot;type&quot;: &quot;gadgets&quot;,</font></b></div><div><b><font \
style="background-color:rgb(244,204,204)" color="#990000">                            \
&quot;ignore&quot;: [&quot;agricultural-land&quot;, &quot;intro-gadget-1&quot;, \
&quot;intro-gadget-2&quot;, &quot;gadget-template-explorer&quot;, \
&quot;gadget-explorer&quot;, &quot;co2-emission&quot;, &quot;electric-power&quot;, \
&quot;energy-use&quot;, &quot;greenhouse-gas&quot;]</font></b></div><div><b><font \
style="background-color:rgb(244,204,204)" color="#990000">                            \
}, {</font></b></div><div><b><font style="background-color:rgb(244,204,204)" \
color="#990000">                                                            \
&quot;type&quot;: &quot;ebooks&quot;</font></b></div><div><b><font \
style="background-color:rgb(244,204,204)" color="#990000">                            \
}, {</font></b></div><div><b><font style="background-color:rgb(244,204,204)" \
color="#990000">                                                            \
&quot;type&quot;: &quot;sites&quot;</font></b></div><div><b><font \
style="background-color:rgb(244,204,204)" color="#990000">                            \
}, {</font></b></div><div><b><font style="background-color:rgb(244,204,204)" \
color="#990000">                                                            \
&quot;type&quot;: &quot;devices&quot;</font></b></div><div><b><font \
style="background-color:rgb(244,204,204)" color="#990000">                            \
}]</font></b></div><div><b><font style="background-color:rgb(244,204,204)" \
color="#990000">                                   \
},</font></b></div></div><div><br></div><div><br></div><div>Now, if you restart the \
server (WSO2-ES), the new sample artifact should get created for the specific \
asset-type. This can be viewed at the Publisher-UI. The artifact will be listed under \
the asset-type in the Store-UI according to the lifecycle state mentioned for the \
<b>&quot;overview_status&quot;</b> attribute in the <b>&lt;RXT_NAME&gt;.json</b> \
file. In our example the artifact will be visible in the Store-UI, since we have set \
the lifecycle status to \
<b>&quot;PUBLISHED&quot;</b>.</div><div><br></div><div><br></div><div><b><u>Common \
Mistakes:</u></b></div><div><ul><li>Missing lifecycle definition in path:  <b \
style="color:rgb(204,0,0);font-family:monospace,monospace">&lt;ES_HOME&gt;<span \
style="font-size:9px">/repository/deployment/server/jaggeryapps/publisher/extensions/lifecycles/</span></b></li></ul><ul><li><b \
style="color:rgb(204,0,0);font-family:monospace,monospace"><span \
style="font-size:9px"><span \
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-weight:normal">In-appropiate \
attribute naming in the Asset-RXT file for the \
attributes:</span><br></span></b></li></ul>                           <b>Ex:   \
shortName,  singularLabel,  pluralLabel,  \
&lt;storagePath&gt;....&lt;/storagePath&gt;</b></div><div><br></div><div><br></div><div>Please \
do inform me of anything that I have missed or included \
redundantly.</div><div><br></div><div>Regards</div><div><div><div><div \
dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><span \
</div></div>
</blockquote></div><br></div></div></div><div><div>

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups &quot;WSO2 \
Documentation Group&quot; group.<br> To unsubscribe from this group and stop \
receiving emails from it, send an email to <a \
href="mailto:documentation+unsubscribe@wso2.com" \
target="_blank">documentation+unsubscribe@wso2.com</a>.<br> For more options, visit \
<a href="https://groups.google.com/a/wso2.com/d/optout" \
target="_blank">https://groups.google.com/a/wso2.com/d/optout</a>.<br> \
</div></div></blockquote></div><br></div></div></div> \
</blockquote></div><br></div></div></div> </blockquote></div><br></div></div></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div></div></div><div><div>

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups &quot;WSO2 \
Documentation Group&quot; group.<br> To unsubscribe from this group and stop \
receiving emails from it, send an email to <a \
href="mailto:documentation+unsubscribe@wso2.com" \
target="_blank">documentation+unsubscribe@wso2.com</a>.<br> For more options, visit \
<a href="https://groups.google.com/a/wso2.com/d/optout" \
target="_blank">https://groups.google.com/a/wso2.com/d/optout</a>.<br> \
</div></div></blockquote></div><br><br clear="all"><br></div></div><span><font \
color="#888888">-- <br><div><div dir="ltr"><div><b \
style="color:rgb(102,102,102);font-family:arial,helvetica,sans-serif;font-size:small">Jackie \
Wheeler</b><br></div><div><font face="arial, helvetica, sans-serif" size="2" \
color="#666666">VP, Technical Content</font></div><div><font face="arial, helvetica, \
sans-serif" size="2" color="#666666">WSO2, Inc.   </font></div><div><font \
face="arial, helvetica, sans-serif" size="2" color="#666666">Mobile: <a \
href="tel:%2B1%20510%20725-2876" value="+15107252876" target="_blank">+1 510 \
725-2876</a></font></div><div><a href="http://wso2.com/" \
style="font-size:small;font-family:arial,helvetica,sans-serif" \
target="_blank">http://wso2.com/</a><font face="arial, helvetica, sans-serif" \
size="2" color="#666666"><br></font></div></div></div> </font></span></div>
</blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div>



_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic