Variable Editor on workplace task table

Ram117
Kilo Sage

Hi Experts,

I am working on building a record producer flow within the Workplace Case management scope. The record producer creates a workplace case , tags an approval and once approval is completed, it creates an auto task.

Flow is working as expected and creates the task without any trouble.

Now showing the record producers variables ( via variables sets in my case) on the 'workplace task' record, it seems to be not showing the variables even after adding the 'Formatter' entry (as in screenshot below)

formatter value : com_glideapp_questionset_default_question_editor

 

Ram117_0-1701409752168.png

added the RP Task Variables formatter into the default view of the workplace task ,

Ram117_1-1701410325823.png

 

After adding the variable editor in the default view, it doesnt show any variables on the 'workplace task' record. If I look at the UI macro (screenshot below) mentioned on the formatter  (com_glideapp_questionset_default_question_editor) , i do not see 'workplace task' record on the sc_item_produced_record table . I see only the workplace case record. 

Any guidance here to troubleshoot or fix the issue.

 

Ram117_2-1701410389037.png

 

thx

ram.

 

 

2 ACCEPTED SOLUTIONS

-O-
Kilo Patron
Kilo Patron

As far as I know what you want is not possible.

It is only in case of Requested Items and Catalog Tasks that the same set of variables can be shown in both places.

Those (and only those) use the com_glideapp_servicecatalog_veditor formatter (which uses the com.glideapp.servicecatalog.VEditor Java class) to display variables.

Other tables use the com_glideapp_questionset_default_question_editor formatter (which uses the com.glideapp.servicecatalog.DefaultQuestionEditor Java class) to display variables.

The latter will only be able to show variables related to the current record.

 

So you need to build something from scratch, or add the summary of variables to the task, or create the variable records for the task records using JavaScript, but only after you will have created a record producer using the same variables for the task too.

View solution in original post

@-O-   Thank you for the reply.

 

Let me try with the creation of the variable records with the task.

View solution in original post

10 REPLIES 10

That is not what I am trying to say.

Please re-read my post until you interpret it correctly.

Once more, this is what I believe you need to do to make variable set titles - maybe - show up:

1) Create a copy of the original Record Producer, but this time for the task.

2) When creating copies for question_answer also create one record in sc_item_produced_record.

That might make the variable set titles show up.