本文介绍了我可以使用哪个 API 来编写 SDL Tridion 工作流活动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 SDL Tridion 2011 SP1 创建工作流,我正在浏览实时内容门户中的文档.

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 through the documentation as follows:

  1. 我可以将 C# (TOM.NET) 用于自动化活动/决策吗?还是应该只使用 VBScript (TOM)?实时内容门户中是否提供了用于自动化活动/决策的示例代码?

  1. Can I use C# (TOM.NET) for automatted activities/decisions? or should I use only VBScript (TOM)? Is there any sample code given in the live content portal for automatted activity/decision?

如果 C# (TOM.NET) 不允许在工作流中使用,为什么在 TOM.NET API 文件中给出了它的命名空间/类/成员引用?

If C# (TOM.NET) is not allowed to use in workflows, why are its namespace/class/member references given there in TOM.NET API file?

如果 VBScript 只允许在 WF 中使用,我在哪里可以获得 SDL 实时内容中的代码/TOM API 参考?截至目前,我无法访问 SDL Tridion 服务器以从安装程序包中获取文档.

If VBScript only allowed to use in WF, where can I get code/TOM API reference in SDL live content? As of now I dont have access to SDL Tridion server to get the documentation from the installer package.

推荐答案

我可以将 C# (TOM.NET) 用于自动化活动吗?还是应该只使用 VBScript (TOM)?

您可以在 C# 代码中使用 TOM 来编写自动化活动.为此提供了一个主要的互操作程序集 (IIRC).

Can I use C# (TOM.NET) for automated activities? Or should I use only VBScript (TOM)?

You can use the TOM within your C# code to write automated activities. There is a primary interop assembly provided for that purpose (IIRC).

支持从现有 TOM.NET 代码(即 TBB 或 DataExtender)中访问工作流项目.因此,您可以查询工作流中的项目、启动工作流等.但不支持使用 TOM.NET 编写自动化工作流活动.

Accessing workflow items from within existing TOM.NET code (i.e. a TBB or DataExtender) is supported. So you can query items that are in workflow, kick off workflows, etc.. But using the TOM.NET for writing automated workflow activities is not supported.

这个原因与我记得的不兼容的线程模型有关.但我大多只是相信开发人员的话;他们肯定比我更了解.

The reason for this has something to do with incompatible threading models from what I recall. But I mostly just took the word of the developers for it; they are bound to know better than me.

Tridion 的 API 参考文档不在 LiveContent 中,而是在 CHM(或压缩的 JavaDoc)文件中提供.TOM API 的最新文档可在 SDL Tridion World 上的 Tridion 2009 文档页面(需要登录).

API reference documentation for Tridion is not in LiveContent, but instead is delivered in CHM (or zipped JavaDoc) files. The latest documentation for the TOM API can be found in the "SDL Tridion 2009 full documentation" zip on the Tridion 2009 documentation page on SDL Tridion World (login required).

感谢 Quirijn 和 Alvin 在评论中指出这一点.

Thanks to Quirijn and Alvin for pointing this out in the comments.

这篇关于我可以使用哪个 API 来编写 SDL Tridion 工作流活动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 18:26