Skip to content

C# Process Framework: EmitEventsAsync not passing in Data #11925

Answered by vicperdana
vicperdana asked this question in Q&A
Discussion options

You must be logged in to vote

Resolved by removing the parameter as well as changing the return type to string.

// Process builder 
string EvaluateBlogPostComplete = nameof(EvaluateBlogPostComplete);
            evaluateBlogPostStep
                .OnEvent(EvaluateBlogPostComplete)
                .SendEventTo(new ProcessFunctionTargetBuilder(publishBlogPostStep,
                    functionName: PublishBlogPostStep.Functions.PublishBlogPost));

// Function
[KernelFunction(Functions.PublishBlogPost)]
    public async Task<string> PublishBlogPostAsync(string finalblogState, Kernel kernel, KernelProcessStepContext context)
    {

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by vicperdana
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
.NET Issue or Pull requests regarding .NET code processes
1 participant