Which API can I use for writing SDL Tridion workflow activities?

前端 未结 4 1565
遥遥无期
遥遥无期 2021-01-12 17:04

I would like to create workflow using SDL Tridion 2011 SP1, and i am going through the documentation in the live content portal.

I have few questions when I go throu

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-12 17:41

    It is fine to use the TOM .Net API. However we must consider that we would need to create Session instances since our new TOM .Net for Workflow won't allow you to pass a WorkItem instance from VBScript (Code Tab in Visio for Automatic Activities) and you are forced to pass the TcmUri for that WorkItem. The session creation is mandatory in order to get Tridion objects instantiated since you just have a tcmuri. The recommendation here is to use the C# class registered as a COM class by using the ComVisible and ProgId attributes but use the CoreServices for all the processing in your Com Visible class.

    If you use the Core Services for processing you won't need to take care of sessions creations and your core would be much faster and scalable. You might be interested in use a TCP binding or a Net Pipes binding for performance obviously.

提交回复
热议问题