Portal Push
Last updated
Last updated
Portlets can be automatically updated by using the Portal Push functionality. If an updated is done in one portlet, a push event can trigger updates to connected portlets. A portal push rest connector must be configured to access this functionality.
Create a table element with two columns (use the exact column names):
PortletInternalName
Action
In the PortletInternalName column enter the internal names of the portlets that are to be refreshed
In the Action column enter REFRESH
Create a Machine step to trigger the push event, using the PortalPush connector.
1. Log on to Flow Studio, go to Environment - Connectors and click Add
2. Set up:
Name = The name of the connector
Type = Rest Service
Base address = XX (in example: http://localhost/Trunk.NovaCura.Portal.Web/api)
Encoding for url parameters = Unicode (UTF-8)
Cache metadata = No
Save
3. Click on REST connector project - EDIT 4. Set up:
Connector name = XX (in example: DefaultConnectorName)
Connector description = the description of the connector
Base path = XX (in example: http://localhost/Trunk.NovaCura.Portal.Web/api) Click Create/update connector button
5. Click Save button in top right corner.
Click on REST connector project - EDIT again
Click on Models in the navigator tree
Click on NEW FROM JSON
6. Use following JSON to generate required models:
You can change one of the new created model name from NEWMODEL to for example PUSHMODEL
7. Click on DefaultConnectorName and ADD in Operations to create operation. When the requested parameters have been entered click OK.
8. Click on Parameters and NEW BODY
9. Enter Body data, click OK and then Create/update connector
10. If asked for content type for rest requests, select Set content-type to application/json and click ok
11. Save the connector