我只是想知道//must replace the attribute with attValue
func SetAttribute(object interface{}, attributeName string, attValue interface{}, objectType reflect.Type) interface{} {
/// works perfectly, but function SetAttribute needs to know Customer type to do the convertion
convertedObject := object.(Customer) // <-- Need to hard code a cast :(
// doesn't works... raise panic!
//convertedObject := object
value := reflect.ValueOf(&convertedObject).Elem()
field := value.FieldByName(attributeName)
valueForAtt := reflect.ValueOf(attValue)
field.Set(valueForAtt)
return value.Interface()
}
在&#34中所代表什么;回顾&#34; autosys的条款。
例如:
0
感谢。
答案 0 :(得分:3)
0声明前驱条件仅在比作业自身状态更新时才有效。
示例:前任运行在12:00,其后继运行在12:01。时间条件告诉后继者在1:00再次运行,但是12:01比12:00更新,并且回顾0不验证。如果前任在1:30再次运行,那么1:30比12:01更新,并且回顾0将验证并开始第二个作业。