Skip to main content



      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 00:44 Go to next message
Eclipse UserFriend
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 03:50 Go to previous messageGo to next message
Eclipse UserFriend
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 04:47 Go to previous messageGo to next message
Eclipse UserFriend
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] Mon, 24 November 2014 21:28 Go to previous message
Eclipse UserFriend
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: Sun Jun 22 02:36:27 EDT 2025

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

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

Back to the top