110
func (r *workflowRebuilderImpl) rebuildableCheck(
111
mutableState *persistencespb.WorkflowMutableState,
113
>
// check1: only workflow archetype is supported
114
>
checkErr := serviceerror.NewInvalidArgument("Rebuild only supports workflow executions, not other archetype types")
115
>
if len(mutableState.ChasmNodes) == 0 {
116
checkErr = nil
118
if rootNode, ok := mutableState.ChasmNodes[""]; ok {
119
if componentAttrs := rootNode.GetMetadata().GetComponentAttributes(); componentAttrs != nil {