-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PrimaryAccountable of resource with specific id is not updated after a transfer event #3
Comments
@ocataco I think your issue is related that ZenPub issue but has no answer, neither dyne/zenpub#60 |
Hi @ocataco, You should use the field Cheers, |
Hi Srfsh, Can confirm this works! the resources is produced by the provider, transferred and consumed by the receiver and the transfer shows in the ui on the material passport. Thanks for the help srfsh :-) |
Thank you @srfsh! That's also helpful for ZenPub and WeLoop @adam-burns I think it's super important to update the Reflow OS documentation with it to help Reflow pilots move further |
Oh one more thing, i see in the screenshot that location of the lot is still OLVG and not the location of the receiver, do we need to do a seperate "move" for that? Update:
The documentation of EconomicEvent.atLocation states: "The place where an economic event occurs. Usually mappable." |
@srfsh @ocataco can you determine if is this a usage misunderstanding or if it is a separate but related uncovered issue?
|
You are right, it is not the right field, but we "hacked" it in to use for updating resource location in Also possibly relevant, the question came up should transfers also be able to update the location at the |
Thanks Lynn, @ocataco does |
Hi @adam-burns I understand that you could specify currentLocation when creating a new resource, but in my test I was explicitly trying to transfer these container resources without creating a new resource which I think is a valid way in use cases where cooperation is important. It's just seems to make sense to give things the same name when you are working together to get insight into the flow of resources. As srfsh found out, the implementation allows for this by making the resourceInventoriedAs and toResourceInventoriedAs have the same id. I noticed that there was no way to update the location in this kind of transfer. the owner changed, the location did not. there is no usage misunderstanding as far as I can tell. |
@ocataco thanks, seems like a valid (and nice) use case, just not one VF has run into. You mean the same ID too, I assume, meaning it is the same resource instance in the software. (Just to note for future reference, you can follow the flows of resources in either case, by following them through the input-process-output and transfer activities, irrespective of agents and locations. But still, good use case.) What is you all's preference? You could use transfer event atLocation to change the resource currentLocation, if you don't need atLocation for its original purpose, which was requested by people who thought they might want to track distances for climate accounting, but afaik have not yet done so. Or we could add a property to event only for explicitly changing the resource currentLocation, if you want at this moment in your development. If we add it, when To me, it has become abundantly clear and we should go ahead and add the field and fix the hack, from the VF point of view. Getting it into the graphql spec, and using it in projects, can be coordinated as needed, and at projects' convenience. Opinions welcome. I'll put together a MR/PR in VF though, to get things moving, some time today. |
Added a property in VF called https://lab.allmende.io/valueflows/valueflows/-/merge_requests/663/diffs |
That sounds like a very nice addition, thanks Lynn!
|
Is the new property toLocation on EconomicEvent scheduled to be implemented in Bonfire? |
Context
I'm working on a simulation of a flow regarding medical gowns. Each gown has their own trackingIdentifier.
At some point the 'hospital agent' produces a lot (with a manifest that lists the gowns it contains).
This lot (a resource which has it's own id), is at some point transferred to another 'cleaner' agent.
The EconomicEvent is created succesfully in reflow os as you can see from the ui, but the ownership and the location of the lot resource are not updated to the receiver;
Issue
This is a problem because when i try to consume the resource as the receiver after the transfer i get the error message:
"You cannot do this since the provider is not accountable for the resource."
Below are the parameters for the transfer event i use in the client code.
And this is when i view the state of the transfer event:
Note that the name field of the primaryAccountable shows the name of the provider: "olvg" (the hospital agent) and not the name of the receiver "cleaner". Also the location is not updated to the location of the receiver.
For more context see: dyne/zenpub#58
The text was updated successfully, but these errors were encountered: