Skip to content

An activity function that returns false is converted to null in orchestrator #50

Closed
@sdoucetOctopus

Description

@sdoucetOctopus

Hi,

I'm using v1.1.4 of durable-functions in javascript.

I have an activty function that returns whether a condition is met, let's say it's :

module.exports = async function (context) {
    return false;
};

When my orchestrator calls this activity funciton, it receives null instead of false :

module.exports = df.orchestrator(function* (context) {
    const myState = yield context.df.callActivity('myActivity');
    return `My state is ${myState}`;
});

If my activity function returns true instead of false, the result is correct, indeed true.
Am I missing something here or it's a bug ?

Thanks

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions