CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • First test report (brain dump)
Pages: [1]

Author Topic: First test report (brain dump)  (Read 3090 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
First test report (brain dump)
February 21, 2009, 04:57:14 am
Hi,

I'm doing it the usual way, clicking here and there without reading the documentation, and trying to report as I walk the way.

Bottom line, RTFM, won't succeed without:
http://wiki.civicrm.org/confluence/display/CRMUPCOMING/CiviCase+Configuration

I suggest to have a default case type for the casual tester, with a simple "Meeting with follows up" (eg. 1 activity meeting, scheduled email in one week). or Anything that let the casual tester "play" with it and hopefully get hooked by the power of this.

I'm not convinced about the web interface to create cases, because it allows you to create a new case and uses it, but never warns you that you need to create xml files here and there, until you try to create a case (live from the sandbox):

Quote
unrecoverable error
    Sorry. A non-recoverable error has occurred.

    Configuration file could not be retrieved for case type = 'case2' (learn more...).

    Return to home page.

What's the point of having to create both an entry in the db AND xml files, and being forced to sync them (eg same name, CamelCase...) ?
Wouldn't it be better to either parse the xml files and generate the list of type of cases (shouldn't be that rocket science to generate a cached php config file) or alternatively have the xml configs within the db as blobs ? No matter what, have all the stuff regarding one config case in one place.

At least in the case type list, display some kind of information about if the case type is ready to be used because file /hardtoguess/location/Whatever.xml exists and contains <caseMattersOtherwiseWontWork> in the right place ;) (or offer to generate an xml that contains the right minimal stuff).

Keep digging

X+
« Last Edit: February 21, 2009, 05:01:22 am by xavier »
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Second step (brain dump)
February 21, 2009, 05:19:31 am
Ok, so I did copy the sample xml file to the right place and renamed it (what's the point of having to put the name of the case in the <name> if it has to be the same as the file name).

Created the case (again), and

Code: [Select]
backTrace

/var/www/civi.trunk/CRM/Core/Error.php, backtrace, 256
/var/www/civi.trunk/CRM/Case/XMLProcessor/Process.php, fatal, 168
/var/www/civi.trunk/CRM/Case/XMLProcessor/Process.php, createRelationships, 91
/var/www/civi.trunk/CRM/Case/XMLProcessor/Process.php, process, 53
/var/www/civi.trunk/CRM/Case/Form/Activity/OpenCase.php, run, 346
/var/www/civi.trunk/CRM/Case/Form/Case.php(296) : eval()'d code, endPostProcess, 1
/var/www/civi.trunk/CRM/Case/Form/Case.php, eval, 296
/var/www/civi.trunk/CRM/Core/Form.php, postProcess, 247
/var/www/civi.trunk/CRM/Core/StateMachine.php, mainProcess, 166
/var/www/civi.trunk/CRM/Core/QuickForm/Action/Next.php, perform, 63
/var/www/civi.trunk/packages/HTML/QuickForm/Controller.php, perform, 203
/var/www/civi.trunk/packages/HTML/QuickForm/Page.php, handle, 103
/var/www/civi.trunk/CRM/Core/Controller.php, handle, 244
/var/www/civi.trunk/CRM/Case/Page/Tab.php, run, 156
/var/www/civi.trunk/CRM/Case/Page/Tab.php, edit, 173
/var/www/civi.trunk/CRM/Core/Invoke.php, run, 197
/var/www/civi.trunk/drupal/civicrm.module, invoke, 339
, civicrm_invoke,
/var/www/drupal-6.6/includes/menu.inc, call_user_func_array, 348
/var/www/drupal-6.6/index.php, menu_execute_active_handler, 18

unrecoverable error
    Sorry. A non-recoverable error has occurred.

    We experienced an unexpected error. Please file an issue with the backtrace

    Return to home page.



It might be that an activity type as defined in the xml doesn't match the ones I have in my civicrm ? (default ones). In any case, the error message isn't very explicit

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: First test report (brain dump)
February 21, 2009, 05:52:17 pm
We had a very ambitious set of requirements for phase 1 - and the trade-off given time and budget was to NOT focus on UI for the CONFIGURATION process. A second reason for this was that we wanted to have some experience with the overall conceptual model / approach to using the component first, make adjustments based on user feedback over the next few months and then consider "baking the design" with configuration UI.

That said, we hope and intend that the configuration guide is complete and accurate such that a moderately technical person can implement things. I think your idea of having a very simple case type w/ it's configuration file included in the base install is a good idea and I'll try and get that in before the next beta.

Regarding your fatal error - the error is occuring in the createRelationships() function. Looks like you have a relationship type referenced in the configuration (xml) file that is not been inserted in the DB. If you're using the physicianhealthbc configuration files - you need to load their relationship types / activity types etc. from the .mysql file included in that sub-directory. (see http://wiki.civicrm.org/confluence/display/CRMUPCOMING/CiviCase+Configuration#CiviCaseConfiguration-CaseRoles(relationshiptypes) )
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • First test report (brain dump)

This forum was archived on 2017-11-26.