MoveNonFungibleTokens can accept multiple non fungible tokens

Description

Peter:

I got a different issue with `MoveNonFungibleTokens`, it is related with flow atomity. So Imagine I have a Bicycle as an object I want to transact among parties. The bike has two parts: the frame and the wheels. Each of them got a non-fungible token associated to it.
So far, I am able to issue both token atomically using
```SignedTransaction stx = subFlow(new IssueTokens(ImmutableList.of(frametoken,wheeltoken)));```
But I cannot move them atomically., I would have to call the `MoveNonFungibleTokens` twice to complete a whole bike transfer, which are two separated transactions:
```SignedTransaction stx1 = (SignedTransaction) subFlow(new MoveNonFungibleTokens(partyAndFrameToken));
SignedTransaction stx2 = (SignedTransaction) subFlow(new MoveNonFungibleTokens(partyAndWheelToken));```
I wonder is there a proper practice around this?

Issue created in Slack from a message.

Activity

Show:
Katelyn Baker
February 13, 2020, 12:56 PM

We cannot log random Corda Tickets against FEAT, that is not the process that should be followed.

Assignee

Wayne Lam

Reporter

Chris Chabot

Labels

Sprint

None

Epic Link

None

Priority

Highest

Engineering Teams

None

Fix versions

None

Affects versions

None

Story Points / Dev Days

None

Build cut

None
Configure