pub fn create_task_with_owner_history(
tx: &mut Transaction,
model: &Model,
draft: TaskDraft<'_>,
owner_history: EntityId,
) -> ScheduleAuthoringResult<EntityId>Expand description
create_task in the model’s declared release, with
a caller-supplied IfcOwnerHistory, which IFC2X3 requires.
In IFC2X3 identification is written as IfcTask.TaskId, which that
release requires.
§Errors
Those of create_task, and:
ScheduleAuthoringError::MultipleSchemas or
ScheduleAuthoringError::UnsupportedSchema when the model binds no
single known release; AuthoringNotInSchema, AuthoringValueType or
AuthoringRequired for a value the release does not declare, cannot
hold, or requires (IFC2X3: long_description, task_time,
predefined_type, a missing identification);
ScheduleAuthoringError::MissingReference when owner_history is
neither in the model nor staged; and
ScheduleAuthoringError::WrongReferenceType when it is not an
IfcOwnerHistory. Nothing is staged on an error.