Skip to content

Instantly share code, notes, and snippets.

@willert
Created October 4, 2012 14:32
Show Gist options
  • Save willert/3833896 to your computer and use it in GitHub Desktop.
Save willert/3833896 to your computer and use it in GitHub Desktop.
my $system = $ctx->model->system('Ernaehrungscoach::Initialdiagnose');
my $db = $system->blank_case_object_for( $ctx->user );
my $case = $db->create_case_object( import => [
$ctx->user, 'Ernaehrungscoach::Situation'
]);
my $results = $system->interpreter->evaluate( $case );
my $report = Exparse::Report->new({
generator => $system->generator,
results => $results,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment