保存Artifact

fun saveArtifact(name: String, artifact: Part): CompletableFuture<Int>

Calls Context.saveArtifact; the returned future completes with the saved version. Await it before the node emits another output or finishes, because only a later event from the node records the version in the session.