Actions(操作(Actions))¶
Actions in Foundry allow users to easily define meaningful building blocks for creating, editing, deleting, and linking object data.
For example:
- A "Create New Flight" Action creates a new
Flightobject and sets theFlight Number,Time of Departure,Origin, andDestinationproperties on that object. - A "Delay Flight" Action modifies an existing
Flightobject to delay itsTime of Departureproperty. - An "Assign To Flight" Action links a
Flightobject to aPassengerobject.
To learn how Actions can be used in Workshop, see Use an Action within Workshop.
Defining an Action¶
For a tutorial on how to define an action type, see the Actions tutorial.
中文翻译¶
操作(Actions)¶
在 Foundry 中,操作(Actions)使用户能够轻松定义实用的构建块,用于创建、编辑、删除和关联对象(Object)数据。
例如:
- “创建新航班”操作会创建一个新的
Flight对象,并设置该对象的Flight Number、Time of Departure、Origin和Destination属性(Properties)。 - “航班延误”操作会修改现有的
Flight对象,以推迟其Time of Departure属性值。 - “分配至航班”操作会将
Flight对象与Passenger对象进行关联。
如需了解如何在 Workshop 中使用操作,请参阅在 Workshop 中使用操作。
定义操作¶
如需了解如何定义操作类型,请参阅操作教程。