You are viewing limited content. For full access, please sign in.

Question

Question

Change in Behaviour - LF9.2 not reflecting a Create Event when using RA9.0

asked on November 25, 2014

We are in the processes of testing all our processes and apps against the LF 9.2 suite. One issue in particular we have now encountered seems to be a serious change in behaviour.

We have Web service that was writing using the SDK9.0 using the RA components. The Web Service has different methods to interact with the Repository which includes, Creating a Document, Changing Metadata and attaching a Electronic Attachment to an Entry. It is called by 2 different 3rd party application and runs perfectly in our Production environment still on LF9.0.2 Server and WF9.1

In our QA environment, where the testing currently taking place, the same applications was working fine when it was still on 9.0.2 Server and 9.1 WF. We then upgraded both LF Server and WF to 9.2 and then noticed the following:

When a New document is uploaded by any of the 2 3rd party applications, in Subscriber, the Create Event is not reflected. So Workflow does not start on the respective entry. It only reflects the Change event when field data is writing to the entry using the same web service.

It would seem there might be a change in behaviour when the RA9.0 objects are communicating with the 92. Server objects.

This is the code we are using to perform the create:

Document.Create(“\*Admin Restart\*Incoming\Sage\New”, “DEFAULT”, EntryNameOption.AutoRename, myData.session);

This the code we use to perform a update of field values, which is reflecting in subscriber as a Change event:

DocumentInfo docInfo = (DocumentInfo) (Entry.GetEntryInfo(449672, myData.session));
docInfo.SetTemplate(“MyTest”);

FieldValueCollection fieldValueCollection = new FieldValueCollection();

FieldInfo myFieldInfo = Field.GetInfo(“MyMulti”, myData.session);
fieldValueCollection.Add(“MyMulti”, "2014-07-04");

docInfo.SetFieldValues(fieldValueCollection);
docInfo.Save();
docInfo.Dispose();

 

Please note that the same Web service when pointing to our Production environment works fine and the events are correctly registered in subscriber.

What could be the problem here?

0 0

Answer

SELECTED ANSWER
replied on November 25, 2014

This is a change in the Laserfiche Server as of 9.1. Please use DocumentInfo.Create instead of Document.Create.

1 0

Replies

replied on November 25, 2014

Thanks Miruna,

 

Will make the change and update the results.

0 0
replied on November 26, 2014

Hi Miruna,

 

Our Developer updated the code to use it as suggested and it seems to work. There is a question though, it would seem that the change in behaviour is only on the Document.Create method, as Folder.Create still works fine and the Create event is registered. Is there a specific reason why only the one method has changed in behaviour?

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.