Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Process Manager (Stardust) » How to access Manual Task information from external mashup?(E.g task OID, Task name, current performer)
How to access Manual Task information from external mashup? [message #1485282] Mon, 24 November 2014 05:44 Go to next message
Melissa Ferenal is currently offline Melissa FerenalFriend
Messages: 18
Registered: November 2014
Junior Member
Hi,

Can anyone suggest the best way to access from an external UI Mashup the task related information such as the current user, current performer, Task OID and Task Name.

I do not appear to find an easy REST API access to this information.

Thanks.
Re: How to access Manual Task information from external mashup? [message #1485450 is a reply to message #1485282] Mon, 24 November 2014 08:50 Go to previous messageGo to next message
Vishal Chaudhari is currently offline Vishal ChaudhariFriend
Messages: 9
Registered: October 2013
Junior Member
Hi Melissa,

You can access the required information using interactionUri. Interaction URI is generated for each activity and is appended as a request parameter to the URL for external application. So let's say that your external mashup URL is: http://localhost:8080/myApp/index.html and Stardust is hosted at: http://localhost:8090/stardust/
While requesting/loading the page in the UI Mashup IFrame, Stardust will create a request like this:
http://localhost:8080/myApp/index.html?ippInteractionUri=http://localhost:8090/stardust/services/rest/engine/interactions/NTE0MnwxNDE2ODE0NTU3Njkw&ippPortalBaseUri=http://localhost:8090/stardust&ippServicesBaseUri=http://localhost:8090/stardust/services/

You can get the required information using following URLs:
http://localhost:8090/stardust/services/rest/engine/interactions/NTE0MnwxNDE2ODE0NTU3Njkw/definition
http://localhost:8090/stardust/services/rest/engine/interactions/NTE0MnwxNDE2ODE0NTU3Njkw/inData
http://localhost:8090/stardust/services/rest/engine/interactions/NTE0MnwxNDE2ODE0NTU3Njkw/owner

Also, check the following links:

http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.stardust.docs.dev%2Fhtml%2Fconcepts%2Fintegration%2Factivity-panel-integration.html&resultof=%22UI%22%20%22ui%22%20%22mashup%22%20

http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.stardust.docs.dev%2Fhtml%2Ftutorial%2Fmashup%2Ftut-ui-mashup.html

http://help.eclipse.org/luna/topic/org.eclipse.stardust.docs.dev/html/tutorial/mashup/tut-ui-mashup.html

Let us know if you need more information.

Regards,
Vishal
Re: How to access Manual Task information from external mashup? [message #1485506 is a reply to message #1485450] Mon, 24 November 2014 09:47 Go to previous messageGo to next message
Vishal Chaudhari is currently offline Vishal ChaudhariFriend
Messages: 9
Registered: October 2013
Junior Member
For getting the Task / Activity OID you can use Javascript api:
For e.g if my activity OID is 5142
Retrieve the last path param in the URI . i.e. : 'NTE0MnwxNDE2ODE0NTU3Njkw' ( this is base 64 encoded information in this form: activityOid|lastModificationTime)
var encodedInfo = 'NTE0MnwxNDE2ODE0NTU3Njkw';
var activityOIdAndLastModificationTime = window.atob(encodedInfo);

Output is: "5142|1416814557690"
Re: How to access Manual Task information from external mashup? [message #1486395 is a reply to message #1485506] Tue, 25 November 2014 02:28 Go to previous message
Melissa Ferenal is currently offline Melissa FerenalFriend
Messages: 18
Registered: November 2014
Junior Member
Hi Vishal,

Thank you very much. I've got it working now..

Regards,

Melissa
Previous Topic:Rule Task Testing
Next Topic:Configuration Variables
Goto Forum:
  


Current Time: Tue Sep 25 15:19:14 GMT 2018

Powered by FUDForum. Page generated in 0.02195 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top