Class StagingRepositoryClient.StagingContext

    • Field Detail

      • contextId

        protected String contextId
    • Method Detail

      • upload

        public String upload​(InputStream stream,
                             String resourceName)
        Uploads the resource provided as stream to the StagingRepositoryClient.StagingContext
        Parameters:
        stream - the stream of the resource to be uploaded
        resourceName - the name of the resource
        Returns:
        the handle to the uploaded resource
      • run

        public PlanRunnerResult run()
        Runs the uploaded plan in an isolated mode. The plan will only be able to access the artefacts uploaded to this context
        Returns:
        the PlanRunnerResult of the execution
      • run

        public PlanRunnerResult run​(Map<String,​String> executionParameters)
        Runs the uploaded plan in an isolated mode using the provided parameters. The plan will only be able to access the artefacts uploaded to this context
        Parameters:
        executionParameters - a list of key-value parameters. these parameters correspond to the parameters that can be selected in UI when starting an execution
        Returns: