Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to define param with expression in main composite #2497

Open
Golfer474 opened this issue Jun 25, 2020 · 1 comment
Open

Unable to define param with expression in main composite #2497

Golfer474 opened this issue Jun 25, 2020 · 1 comment

Comments

@Golfer474
Copy link

In traditional Streams applications the SPL definition allows for parameters in the main composite to be defined using an expression. The expression can refer to a Java defined function ("init" in the example below) that is evaluated at runtime during the application initialization. It does not appear that this functionality is available in the streamsx.topology Java API . Is there a workaround or another way to achieve this using the API ?

namespace myApplication ;
use com.myapplication.configuration::* ;
composite myApplication
{
    param
        expression<rstring> $config : init(getSubmissionTimeValue("param1", ""), getSubmissionTimeValue("param1", "")) ;
    graph
        ...
}
@markheger
Copy link
Member

currently not supported, there is no workaround for topology API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants