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) »
  • CiviCase XML Schema's?
Pages: [1]

Author Topic: CiviCase XML Schema's?  (Read 1308 times)

rcancill

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
CiviCase XML Schema's?
January 04, 2011, 05:10:24 am
I just implemented my second case type in CiviCase and love the end result.  I am not however loving the process of creating the XML file.  It seems that I always make errors.  I finally searched the Internet and downloaded an open source XML Editor  called Editix (there are many) which helped me locate the missing tags and fix the errors, note that CiviCase gives points to the line of code in its internal processor and offers no help in debugging the XML file.

If we must code XML files to implement cases, it would be wonderful if you provided an XML schema that an XML Editor could validate the file against as we are building it and therefore be sure that we are uploading a valid file. It took me well over an hour to debug the file.  I was missing an <activity_type> tag based on bad copy and pasting of some activity types.

The XML Schema would be fantastic.

Long term, a set up program to eliminate the need for manual creation of the XML File would be fantastic.  We would like to enable our clients (end users) to set up case types on their own without our assistance. Today that is not possible.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: CiviCase XML Schema's?
January 04, 2011, 06:27:50 am
Have you tried building the schema from an xml?

Have to admit I lost interest in xml related stuff a long time ago, but it was possible to build a dtd from an xml. Then you have to set the constraints (eg. if you can have only one tag, if one tag is mandatory...) but should give a starting point.

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

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: CiviCase XML Schema's?
January 04, 2011, 07:33:19 am

Would be great if your firm / your clients can help contribute code to do either / both of the below issues. I think moving the "xml schema" to a set of DB tables with an interface on top of it is the better way forward. If i had to guess this is a 60-80 hour project

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

rcancill

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
Re: CiviCase XML Schema's?
January 05, 2011, 08:09:36 am
We shall discuss this as a project.  The ability to maintain the structure represented in the XML file via an application in CiviCASE seems to be a definite future requirement.  I am sure that there are an equal number of organizations with well defined processes that can be implemented in CiviCase as there are those that are creating their process on the fly (as we are).

In all cases there will be a need to modify the structure and rules governing a case on an ongoing basis by an authorized administrator -- preferably a non-technical person. 

Its been years since I've built a schema, and I look at a schema as a temporary fix here. Lets see if anyone else is interested and shares our concerns.

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: CiviCase XML Schema's?
January 05, 2011, 01:57:52 pm
I'm trying to remember the reasoning for all this in the first place and I think it had to do with all the regional physician health programs having similar enough configs that to be able to share those configs by just passing around some files was preferred. Then priorities just simply dropped this kind of improvement far down the list.

I do see it as a barrier to adoption though. It's been on my personal "to think about" list for some time now.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: CiviCase XML Schema's?
January 05, 2011, 02:52:00 pm

a couple of reasons that we started to use xml:

1. the config info evolved in the first few releases and manipulating and changing a text file is way easier than db tables. Not a lot has changed with this info recently, so now might be a good time to put it in a table

2. we only needed to read and create a structure for the XML data, wheres we would need a CRUD interface for db tables. a lot more code. Started off as a prototype and we kept it there. No significant incentive to move away from it, though i do agree it is a HUGE barrier

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: CiviCase XML Schema's?
January 14, 2011, 12:53:58 am
Make-it-happen?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • CiviCase XML Schema's?

This forum was archived on 2017-11-26.