Expand my Community achievements bar.

SOLVED

Custom Render service is called only once, why?

Avatar

Former Community Member

Hi All,

I've created a custom render service in order to prepopulate principals name on each step of my process.

The input form of the process is a Document Form cause users attach files to the form and it is routed to next station with the attachments.

"Call Render Service only once" checkbox in advanced settings is unchecked.

When the process is initiated my custom render is invoked fine, but when it reaches the assign task activity the form is opened but no render service is invoked.

Why is it happens?

Thanks in advance, Yan.

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

Hi Yan,

Are you using the same 'form' variable in user step that you used in first step? I would suggest that you put the Variable Logger as the first step in your render process to check if it gets called several times or not.

Parth

View solution in original post

4 Replies

Avatar

Correct answer by
Former Community Member

Hi Yan,

Are you using the same 'form' variable in user step that you used in first step? I would suggest that you put the Variable Logger as the first step in your render process to check if it gets called several times or not.

Parth

Avatar

Former Community Member

Hi Parth,

I'm writing to the log file every time that my custom service is invoked.

When I open a form for a first time in workspace I see that it was invoked but when it reaches "assign task" activity and opened again the service is not invoked.

I have only one form variable.

Yan.

Avatar

Level 10

I forget the exact name, but I believe there is a "render only once" option when you configure the render service.

Jasmin

Avatar

Former Community Member

Before the assign task step the form was sent as an input to another process and then  returned as an output.

In this process the form was assigned to another one that was not configured to use custom render service.

Thanks a lot!

The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----