Hi Gerard, > I currently have this this: > > get_certificate_data: > class: OpenXPKI::Server::Workflow::Activity::Tools::SetContext > param: > _map_certlist: "[% context.cert_identifier_list %]" > > Before I tried to skip the get_certificate_data and go to SUCCESS > directly if hasresult is true but without any luck. > > In both cases the data stays empty, how can I get the > context.cert_identifier_list properly in the data of the result?
There is no need to use SetContext at all, the Search activity will populate the context item with the key "cert_identifier_list" and you just need to "whitelist" this in your rpc configuration (output = cert_identifier_list). If you want to change the name of the key, use the target_key setting of the activity. The snippet above does not work at all - the [%..%] syntax invokes template toolkit which always returns a string, in this case it converts the perl list object into the literal string ARRAYxxxx without any useful information. You can "map" non scalar items by using the shortcut syntax "_map_key: $value", for more complex transformations you must wirte your own activities. Oliver -- Protect your environment - close windows and adopt a penguin! _______________________________________________ OpenXPKI-users mailing list OpenXPKI-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openxpki-users