I have used the plugin template to create a simple test plugin for cloudify 3.1. my plugin.yaml has the following description for a relationship:
relationships:
mytest.relationships.connected_to:
derived_from: cloudify.relationships.connected_to
source_interfaces:
cloudify.interfaces.relationship_lifecycle:
establish:
implementation: python_webserver.plugin.services.publish
inputs:
publish_input:
default: {}
properties:
publish_propety:
default: {}
I have two questions:
- How can I read the relationship properties (“publish_propety” for instance”) inside the publish function (which implement the establish interface). I did not find any way to access them. The ctx has references for source and target nodes and instances , but I did not find anything related to relationship
- What is the different between property and input for relationship? And when should we use each of them?
Thanks