How do i obtain Mashlet code/content

dharmendra.jaiswal
dharmendra.jaiswal's picture
User offline. Last seen 2 years 12 weeks ago. Offline
Joined: 08/26/2009
Points: 20

I have created and published Mashlet through presto UI using mashup but not able to find the code/content related to it in my presto folder. Can any one help me out that where the content of mashlet is saved. OR is there any way to find out or generate the main.js file related to that particular published mashlet.

Thanks in Advance....

 

0
Your rating: None
smitchell
smitchell's picture
User offline. Last seen 17 hours 27 min ago. Offline
Joined: 08/29/2008
Points: 34

If you created a basic mashlet in Mashlet Maker, there is no such file or folder. The guts of the mashlet is saved in the Presto Repository.

In 2.7.0, the only mashlets you can see code for are custom mashlets that you write yourself. However, there are sample custom mashlets shipped with Presto. You can find the JS files (CSS and images too) is {web-apps-home}/mashlets/ in folders under the name of that custom mashlet. Look at the mashlets that have names beginning with "sample" or the Hello World sample.

 

Sara, technical writer/jackbe

 

dharmendra.jaiswal
dharmendra.jaiswal's picture
User offline. Last seen 2 years 12 weeks ago. Offline
Joined: 08/26/2009
Points: 20

Hi Smitchell...Thanks for the reply.

dharmendra.jaiswal
dharmendra.jaiswal's picture
User offline. Last seen 2 years 12 weeks ago. Offline
Joined: 08/26/2009
Points: 20

Can ay one tell me that, is its possible to achieve business workflow like approval/rejection in mashup? If yes... then  are we using any workflow engine like jBPM in it . Any pointer will be helpfull....Thanks

imtiyaz
User offline. Last seen 1 week 3 days ago. Offline
Joined: 09/24/2008
Points: 0

Yes, it is possible to achive workflow using mashups.

1. Call the apis (apis exposed by the application) as pojo objects in mashup using javascript.

example:

        <script type="text/javascript" outputvariable="symbol">
        <![CDATA[
            var quote = new Packages.com.xignite.www.services.Quote();
            var symbol = quote.getSymbol();
        ]]>
        </script>

2. Create a soap service using the apis and use them in mashups.

Presto does not use any workflow engine.