Replies: 1 comment 4 replies
-
Hi, what specific use case are you trying to solve? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Background: We would like to implement a
Policy
which is evaluated on the provider side, when aTransferProcess
is started. ThisPolicy
should be able to access information about theDataRequest
.The
evaluate
method of aAtomicConstraintFunction
provides the possibility to create new policy logic. The available information in thePolicyContext
is however constrained. Currently it is possible toParticipantAgent
getContextData
method to retrieve provisionedResourceManifests
.It would be great if further information like the
DataRequest
is available. But currently I don't see a possibility for using theDataRequest
information in aPolicy
.One could pass the information using the
ResourceManifests
, but thePolicyEngine
is just invoked at the consumer side:Connector/core/control-plane/transfer-core/src/main/java/org/eclipse/edc/connector/transfer/provision/ResourceManifestGeneratorImpl.java
Line 77 in d961153
and not on the provider side:
Connector/core/control-plane/transfer-core/src/main/java/org/eclipse/edc/connector/transfer/provision/ResourceManifestGeneratorImpl.java
Line 86 in d961153
Furthermore this approach would only work for specific Resources.
Is there another approach for implementing this policy or could another
Policy
scope be added, where thePolicyEngine's
evaluate
method is called with additionalcontextInformation
?Beta Was this translation helpful? Give feedback.
All reactions