Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
deemount committed Mar 12, 2024
1 parent 93c4d72 commit be29f1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion inject.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ func (injection *Injection) Create(p interface{}) {
// Allocate a temporary variable with type of the struct.
// el.Elem() is the value contained in the interface
definitions := reflect.New(el.Elem().Type()).Elem() // *core.Definitions
definitions.Set(el.Elem()) // reflected process definitions el will be assigned to the core definitions
definitionsAttributes := definitions.MethodByName("SetDefaultAttributes")
definitionsAttributes.Call([]reflect.Value{}) // r.Definitions represents the core definitions
definitions.Set(el.Elem()) // reflected process definitions el will be assigned to the core definitions

/*
// set collaboration, process and diagram
Expand Down

0 comments on commit be29f1f

Please sign in to comment.