cancel
Showing results for 
Search instead for 
Did you mean: 

Create website to handle request

drozes
Champ in-the-making
Champ in-the-making
Hi guys;

I am hoping to use Alfresco to manage my website support requests.  What I would like is when a user on my 'external' website submits a support request.  I am thinking that I could use a webscript to generate a document that will act as the support ticket.  The admin could than log into the share'd instance of the site and view all the documents and eventually use workflows to manage them.

Does this all sound like the best method?

Thanks for any feedback.
3 REPLIES 3

jpotts
World-Class Innovator
World-Class Innovator
Yes, this would work. An alternative would be to have your web site use CMIS to create the support request. Then you wouldn't have to write any new web scripts. If you go the CMIS route, your support request type will have to be a descendent of cm:content because CMIS can only create content instances that are of type cm:content or some child type.

Jeff

drozes
Champ in-the-making
Champ in-the-making
Thanks Jeff;

So I have my data list set up, at the moment the model has ' <parent>dl:dataListItem</parent>'.  When I try to POST into cmis I get the error that POST is not accepted.  Is this because there is no cm:content?

jpotts
World-Class Innovator
World-Class Innovator
Content isn't required when creating a new Document object in CMIS.

I'm not sure if you are using a client library, or if you are, which one, but using Python and cmislib, it looks like this:
>>> folder = repo.getObject("workspace://SpacesStore/fbc78f8f-71e0-44df-a01f-f9418e1742aa")
>>> props = {}
>>> props['cmis:objectTypeId'] = 'D:dl:contact'
>>> props['dl:contactFirstName'] = 'Joe'
>>> folder.createDocument('test', properties=props)
<cmislib.model.Document object at 0x10d446290>
Regardless of the library you are using, the key is to make sure you are passing in a value for 'cmis:name' (mine is 'test" in this example) and the "cmisSmiley SurprisedbjectTypeId". The value of the object type ID will have a "D" in front of the type name.

Jeff