Backendless.Cloud.run

Any alternative for Parse.cloud.run in Backendless ?

Parse.Cloud.run(‘updateStatus’, {objectId: this.id, objectType: ‘Post’, objectStatus: status})

https://backendless.com/documentation/business-logic/js/bl_overview.htm

is it equal to Backendless.ServerCode.Persistence.run
can you show me a example please.

I do not understand what you need to do. Can you describe the use-case you need to implement?

it is a method for return the status of a post, that is in angularjs factory(Post). please see the code block below:

Post.updateStatus = function(status) {
var _this = this
return Backendless.ServerCode.Persistence.run(‘updateStatus’, {objectId: this.id, objectType: ‘Post’, objectStatus: status})
};

The closest to this would be Custom Events in Backendless:

https://backendless.com/documentation/business-logic/js/bl_custom_events.htm