||
Skip to end of metadata
Go to start of metadata

To simulate built-in and user defined handlers, you need to select the "Simulate Handlers" option on the "Handlers" page.

Follow the instructions below to simulate a handler in the Governance Registry.

1. Sign in. Enter your user name and password to log on to the Management Console.

2. Click the "Extensions" button to access the "Extensions" menu.

3. From the left navigation menu, under "Extensions," select "Handlers."

4. On the "Handlers" page, click the "Simulate Handlers" link.

5. On the "Handler Simulator" page from the drop-down menu, select the operation name.

6. Fill at least the mandatory fields. The list of operations and related options is presented in the table below.

Operation

Mandatory Parameters

Optional Parameters

get

Path - The path from which the resource is fetched.

 

put

  • Path - The path to which the resource is added.
  • Resource Path - The path of the existing resource (which will be put to the new path).

Media Type - The Media type of the resource. For more information about Media types, please, visit the Adding a Resource page.

resourceExists

Path - The path at which the resource existence is checked.

 

delete

Path - The path from which the resource is deleted.

 

importResource

  • Path - The path to which the resource is imported.
  • URL - The source URL of the resource imported.

Media Type - The Media type of the resource.

copy

  • Path - The source path.
  • Target Path - The target path.

 

move

  • Path - The source path.
  • Target Path - The target path.

 

rename

  • Path - The source path.
  • Target Path - The target path.

 

removeLink

Path - The path at which the link is removed.

 

createLink

  • Path - The path at which the link is created.
  • Target Path - The target path (or instance identifier) of the link.
  • Target Sub-path - The target sub-path.

 

invokeAspect

  • Path - The path at which the aspect is invoked.
  • Aspect Name - The name of the aspect.
  • Action - The invoked action.

 

addAssociation

  • Path - The path at which the association is added.
  • Target Path - The target path or URL.
  • Association Type - The type of the created association.

 

removeAssociation

  • Path - The path at which the association is removed from.
  • Target Path - The target path or URL.
  • Association Type - The type of the removed association.

 

getAssociations

  • Path - The path at which the associations are fetched.
  • Association Type - The type of the fetched associations.

getAllAssociations

Path - The path at which the associations are fetched.

 

createVersion

Path - The path at which the version is created.

 

restoreVersion

Path - The path at which the version is restored (should include the version details).

 

getVersions

Path - The path at which the versions are fetched from.

 

applyTag

Path - The path at which the tag is applied.

Tag - The tag applied.

 

removeTag

Path - The path at which the tag is removed.

Tag - The tag removed.

 

getTags

Path - The path at which the tags are fetched.

 

getResourcePathsWithTag

Tag - The tag for which the resource paths are obtained.

 

rateResource

  • Path - The path to which the rating is added.
  • Rating - The rating added (must be a number).

 

getRating

  • Path - The path from which the rating is fetched.
  • Username - The name of the user who rated the resource.

 

getAverageRating

Path - The path from which the average rating is fetched.

 

addComment

  • Path - The path to which the comment is added.
  • Comment - The comment added.

 

removeComment

Path - The path from which the comment is removed.

 

editComment

  • Path - The path to which the edited comment is added.
  • Comment - The edited comment.

 

getComments

Path - The path from which the comments are fetched.

 

searchContent

Keywords - The keywords used to search the content.

 

executeQuery

Parameters - The query parameters (should be in the format, key1:val1,key2:val2,...)

Path - The path at which the query is stored.

7. Click on the "Simulate" button to simulate the handlers that are executed as a result of invoking the selected operation along with the provided details. This will generate a graphical representation of the handlers invoked along with the status of each handler.

  • No labels