Logo: Relish

  1. Sign in

Project: My-project

Request Report

As a job
I want to request a report to be generated
So that the user can view the report

Background
Given
that a realm is active
Scenarios
Requesting a report
Given
a "Request Report" job version "1" is invoked with the following uic:
targets attributes
<ns>;ReportRequest;<report_request_id>;0 <report_request_id>;report_name;Contacts
<report_request_id>;report_version;1
<report_request_id>;report_parameters;this_is_a_ref_to_another_uic
<report_request_id>;requested_datetime;33411232322
<report_request_id>;output_directory;whatever_from_user_settings
When
the request to "Request Report" is received
Then
a new "ReportRequest" will be created with:
attribute value
domain_obj_id <report_request_id>
domain_obj_state requested
report_name Contacts
report_parameters this_is_a_ref_to_another_uic
output_directory whatever_from_user_settings
requester_fullname John Depot
subdomain_url powerestate
And
'the ReportRequest will be created under RequestRegister > Reports'
And
a :report_command_request will be created
Exception when the requester is not found

For a context to run, it needs a job payload which contains the uic and other mandatory attributes,
such as: job_type, job_version, user_id, realm_ns, realm_id, etc.

The context that runs "Request Report" job will get a user_profile given the user_id to retrieve the
report's requester's name. If the user_id given is invalid - i.e. does not exist,
then a ObjectNotFoundException will be thrown.

This scenario does not have any steps.


Last published over 4 years ago by nbeagley.