DISLCLAIMER: This only works when the activity only calls one proxy. If the activity has multiple calls to proxies (which are possible), please resort to other ways.
- Go 1.23.4
Do this once after pulling the repository or every dependency update.
- Run
make vendor
- Edit
schemaName
inmain.go
. This refers to the schema name in LGS, without.schema.json
suffix. - Edit
processAndActivityName
inmain.go
. This refers to the package name and the activity name in Temporal. - Edit
readSet
. This relates to the document fields needed to run the process. In this case, it's the request fields needed by the LGS schema. - Edit
writeSet
. This relates to the document fields where we will put the result. In the case, this will be the fields obtained from the LGS schema. - Run
go run main.go
. - Copy the output into
impl.go
file into any LORA worker repo.